cannot reboot from a script ran by root's crontab

Jez Hancock jez.hancock at munk.nu
Thu Jun 12 14:09:08 PDT 2003


On Thu, Jun 12, 2003 at 08:10:39PM +0300, PsYxAkIaS (FreeBSD) wrote:
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/sbin/checkre >/dev/null 2>&1
*/5 * * * * /usr/sbin/checkre >/dev/null 2>&1

Saves a bit of typing :)

Something like:

*/5    *   *   *   *   root    /sbin/reboot

in /etc/crontab should work.

Regards,
Jez


More information about the freebsd-isp mailing list