Fedora Linux Support Community & Resources Center
  #1  
Old 22nd May 2005, 06:56 PM
blainehilton Offline
Registered User
 
Join Date: Feb 2005
Posts: 15
Exclamation Fetchmail init script

I am trying to have fetchmail load the daemon when the Fedora server is started. I have been trying to get the script located at http://www.fedoraforum.org/forum/showthread.php?t=12127 to work. However I am having problems

First of all it does not start the daemon when the computer is turned on. I'm not sure if I have the chkconfig line right. I have tried "chkconfig 35 90 10" and "chkconfig - 90 10".

When I enter "service fetchmail status" as root I have an error saying "/etc/init.d/fetchmail: line 95: status: command not found".

When I enter "service fethcmail start" as root I have an error saying "/etc/init.d/fetchmail: line 63: daemon: command not found".

Any ideas?


--
Thanks in advance
Blaine
Reply With Quote
  #2  
Old 22nd May 2005, 07:43 PM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
try su -
service fetchmail start
or
su
/sbin/service fetchmail start
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #3  
Old 22nd May 2005, 08:02 PM
blainehilton Offline
Registered User
 
Join Date: Feb 2005
Posts: 15
Thanks for your response.

I have been root when doing this, but I tried both ways you listed and it does not work. If I type in "fetchmail" as root in the /etc/init.d/ folder, the fetchmail daemon will start. However I still can not do the service status/start/stop stuff, nor will it start when the server is started. I think there is a syntax error in the script, but I am not sure where.

Any other suggestions?


BTW: I changed line 15 of the script which goes like this:

Code:
# Source function library.
.. /etc/rc.d/init.d/functions
to

Code:
# Source function library.
/etc/rc.d/init.d/functions
and now when I enter "service fetchmail status", I do not have an error, but just nothing. It just gives me another command prompt. Same thing for 'service fetchmail start". The service does not start, and I am just given another command prompt.

Last edited by blainehilton; 22nd May 2005 at 08:14 PM.
Reply With Quote
  #4  
Old 30th June 2006, 04:34 AM
n2rjt Offline
Registered User
 
Join Date: Jun 2006
Posts: 1
Good script, thank you. I would only suggest 2 things:
a) replace the find with ls /home/*/.fetchmailrc, since find can be slow if the users have large directories.
b) or even better, for each user, find the home directory, look for .fetchmailrc there.
(don't assume /home/$u is home directory of user $u)

Of course, for me and most, the assumption is valid.
Reply With Quote
Reply

Tags
fetchmail, init, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fetchmail-init script knurd Programming & Packaging 11 9th April 2008 02:20 AM


Current GMT-time: 18:07 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat