fetchmail-init is a SystemV init script that manages fetchmail for local users. It works by searching through users home directories for ~/.fetchmailrc 'run control' file and starting daemons on the users behalf. fetchmail-init should work on any platform based on Red Hat Linux 8 and above, including RHEL and Fedora Core.
Other Distributions
NOT YET SUPPORTED
Version: 1.1-0 Tue Jan 10 2006 stable
Admin usage:
Red Hat/RHEL/Fedora
service fetchmail {start|stop|restart|cleanup|debug|status}
Regular User usage:
Red Hat/RHEL/Fedora
/usr/bin/fetchmail-init {start|stop|restart|cleanup|check|status}
Files:
/etc/fetchmailrc
/etc/sysconfig/fetchmail-init
/etc/init.d/fetchmail
/usr/bin/fetchmail-init
/usr/share/doc/AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
How it works
When executed either manually or through init , it searches through all users
home directories for run control file "~/.fetchmailrc" When it finds the rc file, it executes
fetchmail as that user, by using 'su'. So the user can stop and start the process without
effecting any other users fetchmail process. You must have a properly configured ~/.fetchmailrc
file for this to work.
Also, you can set it to read a global /etc/fetchmailrc with option GLOBALRC="yes" in the sysconfig file.
The script has been broken down into two seperate scripts. One for SysV init administration and the other for Regular user administration. Both are included in the following RPM.