Crontab @reboot directive

Gerard gerard at seibercom.net
Tue Apr 22 20:35:20 UTC 2008


On Tue, 22 Apr 2008 21:18:26 +1000
andrew clarke <mail at ozzmosis.com> wrote:

> On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot
> (zszalbot at gmail.com) wrote:
> 
> > If I want to start a program at every system reboot and the program
> > should not be started by root, is it enough for me to edit a users
> > crontab with the following directive?
> > 
> > @reboot /path/to/file.sh
> 
> Yes.  This is how I start fetchmail after a reboot:
> 
> @reboot /usr/local/bin/fetchmail -d 120

Is there a specific reason that you choose to do that rather than
starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file?


-- 
Gerard
gerard at seibercom.net

The solution of problems is the most characteristic
and peculiar sort of voluntary thinking.

	William James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080422/4ccd77ad/signature-0001.pgp


More information about the freebsd-questions mailing list