Crontab @reboot directive

andrew clarke mail at ozzmosis.com
Tue Apr 22 11:18:35 UTC 2008


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


More information about the freebsd-questions mailing list