David Brodbeck
2005-Apr-13 13:51 UTC
[Asterisk-Users] Advice sought on how to automatically and sa fely reboot * box
> -----Original Message----- > From: mchapman2@carolina.rr.com [mailto:mchapman2@carolina.rr.com]> 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?You might look here: http://www.voip-info.org/wiki-Asterisk+automatic+daily+restart Neither of the examples does exactly what you want, but you could probably adapt them.
Colin Anderson
2005-Apr-13 14:03 UTC
[Asterisk-Users] Advice sought on how to automatically and sa fely reboot * box
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: mchapman2@carolina.rr.com [mailto:mchapman2@carolina.rr.com] Sent: Wednesday, April 13, 2005 2:11 PM To: asterisk-users@lists.digium.com 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 Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users