Crontab @reboot directive
Hello, 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 Many thanks! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Crontab @reboot directive
On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Crontab @reboot directive
On Tue, 22 Apr 2008 21:18:26 +1000 andrew clarke [EMAIL PROTECTED] wrote: On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) 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 [EMAIL PROTECTED] The solution of problems is the most characteristic and peculiar sort of voluntary thinking. William James signature.asc Description: PGP signature
Re: Crontab @reboot directive
On Tue 2008-04-22 16:34:56 UTC-0400, Gerard ([EMAIL PROTECTED]) wrote: @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? Since I have root access on that machine, yes I could do that. But for my particular setup I couldn't see any advantage. Plus, the less I need to edit system-wide config files, the better, I think. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Crontab @reboot directive
andrew clarke writes: @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? Since I have root access on that machine, yes I could do that. But for my particular setup I couldn't see any advantage. Plus, the less I need to edit system-wide config files, the better, I think. I'm confused: how is /etc/rc.conf any more a system-wide config file than /etc/crontab? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Crontab @reboot directive
On Tue 2008-04-22 17:03:41 UTC-0400, Robert Huff ([EMAIL PROTECTED]) wrote: @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? Since I have root access on that machine, yes I could do that. But for my particular setup I couldn't see any advantage. Plus, the less I need to edit system-wide config files, the better, I think. I'm confused: how is /etc/rc.conf any more a system-wide config file than /etc/crontab? I run fetchmail from the user crontab (edited with crontab -e), not /etc/crontab. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Crontab @reboot directive
On Tue, Apr 22, 2008 at 05:03:41PM -0400, Robert Huff wrote: andrew clarke writes: @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? Since I have root access on that machine, yes I could do that. But for my particular setup I couldn't see any advantage. Plus, the less I need to edit system-wide config files, the better, I think. I'm confused: how is /etc/rc.conf any more a system-wide config file than /etc/crontab? I think it would be a matter of convention and way of speaking. Configuration settings values are done in /etc/rc.conf. The crontab file contains directions to run specific things at specific times. Setting these things up is a type of configuration activity, of course, but not the way it is in rc.conf. jerry Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]