On Thu, Jul 15, 1999 at 03:51:08PM +0100, Patrick Kirk wrote: > The man files for adding anything to the startup are really awful if you are > new to Linux. Is there a way for me have fetchamail start every time the > machine boots? .fetchmailrc is set to run in daemon mode but just getting > the thing to start if somehow the machine needs to be rebooted without me > there seems impossible. I've tried update-rc.d, I've tried to edit the > skeleton script but surely there's some easier way?
The files in /etc/init.d/ are scripts which get symlinked into /etc/rc?.d. They get run with arguments like "start" and "stop" and should cause whatever service they provide to do whatever the action says when run. Create a script which starts and stops fetchmail appropriately - eg, start with su user -c "fetchmail" and stop with something like su user -c "fetchmail -q" The sus are needed since by default init scripts run as root. Make it executable, and then use update-rc.d to link it into the appropriate runlevels. In general, regular users on Unix systems can't make things happen at system startup. If that scares you, an easier approach is to run fetchmail from crontab (in non-daemon mode). Also, please keep your lines under 80 columns - don't use one line for an entire paragraph. -- Mark Brown mailto:[EMAIL PROTECTED] (Trying to avoid grumpiness) http://www.tardis.ed.ac.uk/~broonie/ EUFS http://www.eusa.ed.ac.uk/societies/filmsoc/
pgp13dm91v30D.pgp
Description: PGP signature