Cron Job restart

Forums Network Management ZeroShell Cron Job restart

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #40670

    is there anyway to add system restart to cron job list scheduled for a specific time of the day.
    My hotspot is working fine but it frooze up last night and had to restart it to get everyone connected. checked logs but found nothing.



    I have not compiled and installed the crond daemon yet.
    At the moment the workaround is to put in the /etc/rc.local the following line:

    ( while true ; do [ $( date +”%H:%M” ) == “hh:mm” ] && reboot ; sleep 30 ; done ) &

    in which hh:mm is time you want the reboot.
    Another solution is to put in the /etc/rc.local the command:

    shutdown -r hh:mm &

    but in this case the manually shutdown and reboot operations do not work.

    To add commands in the /etc/rc.local you have to use the vi editor if you use the releases beta1-4 or just to use the web gui in the section
    [Setup]->[Startup] if you use the release 1.0.beta5.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.