You could use minicron:
<shellcmd>rm /var/run/rebootme.pid; /usr/local/bin/minicron
86400 /var/run/rebootme.pid /sbin/reboot</shellcmd>
Please test this on a non-production system - I haven't tested it.
Justin
On Thu, 2005-07-21 at 22:19 -0700, Michael Mee wrote:
> Is it possible to setup a regular reboot via <shellcmd>?
>
> We have 1.2b9 running on a 32MB Soekris 4511 board with an ISP that
> provides 2 minute DHCP leases(!). And it seems that every lease renewal
> chews a tiny bit of RAM. On the 64MB board we previously used this would
> take weeks before becoming a problem, now it seems to take a couple of
> days. (We're not entirely sure, still reading tea leaves, oops I mean
> the remote syslog entries, looking for clues).
>
> So ... we thought if it was simple enough, we'd add a shellcmd to reboot
> the box every 24 hrs or so.
>
> Has anyone tried this? Did it work? I'll write up whatver solution I
> get so it can get added to the wiki and/or docs.
>
> Thanks in advance!
>
> cheers, michael
> www.socalfreenet.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
>
-- |