Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 22:09:06 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-isp@freebsd.org
Subject:   Re: cannot reboot from a script ran by root's crontab
Message-ID:  <20030612210906.GB92182@users.munk.nu>
In-Reply-To: <000a01c33105$8e4e4ec0$152ea8c0@computer>
References:  <000a01c33105$8e4e4ec0$152ea8c0@computer>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030612210906.GB92182>