In /etc/crontab: 0 2 * * * reboot
Runs the reboot command every morning at 2 AM. Works for me. If you are using a RedHat / Fedora box and you have cron running at startup as a service your crontab entries should be running as root, so it should work fine. cron is super bitchy about extraneous <cr> and <lf> 's in the file, so make sure you delete any whitespace after your entry. hth -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:11 PM To: [email protected] Subject: [Asterisk-Users] Advice sought on how to automatically and safely reboot * box Hi- I am trying to figure out a way to automatically shutdown and reboot an * box safely on a set schedule. I have thought about using a CRON job but I am a newbie when it comes to setting up CRON jobs. I have googled for examples but I have came up empty. Has anyone on the list setup anything similiar to what I am wanting to do? I want to install an * box in a location where the people are not computer savvy at all...and I want to try and keep my * box up and running without stability problems for as long as possible. I have read it is recommended to reboot the * box on a regular basis. Thanks for any help with this.. Mike C. _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
