Cron Job restart

Home Page Forums Network Management ZeroShell Cron Job restart

This topic contains 0 replies, has 0 voices, and was last updated by  saadakhtar 11 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40670

    saadakhtar
    Member

    hi,
    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.

    regards

    #45532

    imported_fulvio
    Participant

    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.

    Fulvio

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.