[ale] Cron for re-boot

sangell at nan.net sangell at nan.net
Fri Mar 1 07:17:52 EST 2002


I am trying to set a cron job to reboot a server on the 15th of each month
at 3:00am. I have tried:

* * 15 * * exec /sbin/shutdown -r now
and
* * 15 * * /sbin/shutdown -r now
and
* * 15 * * shutdown -r now

all in /var/spool/cron/root

None work. I even tried using webmin to add the job but no success. Now the
funny thing is in while in webmin, I click "Run Now"  and the system
reboots with the "exec /sbin/shutdown -r now" but no matter how I set the
time for the job to run it will not restart via cron. I do have 3 other
jobs that run every night which are successful. I am at a loss. Any ideas?


\_\_\_\_\_\_\_\_\_\_\_/_/_/_/_/_/_/_/_/_/_/
\_    Steve Angell,  MCSE, CCNA           _/
\_    MIS Operations Manager               _/
\_    TSYS Debt Management             _/
\_    Norcross, GA                                   _/
\_    Phone 770-409-5570                    _/
\_    Fax      770-416-1752                   _/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list