[asterisk-users] [CRON] Right way to restart Asterisk and Zaptel?

Gareth Blades list-asterisk at skycomuk.com
Fri Jun 25 05:19:25 CDT 2010


Hugo Serrano wrote:
> On 25/06/10 10:44, Gilles wrote:
>> On Fri, 25 Jun 2010 09:53:34 +0200, Randy R<randulo2008 at gmail.com>
>> wrote:
>>    
>>> IMO, if it's a business phone, you'd do well to just reboot it at 3AM
>>> once a week or once a month or some interval that you're comfortable
>>> with. We used to do this for a similar reason.
>>>      
>> Right, but he won't remember to do this, and I don't want to do it
>> myself :-)
>>
>>    
> You can set it up.
> 
> #crontab -e
> 
> 0 3 15 * * /sbin/reboot
> 
> 
> This examples should reboot the server every day 15 of any month at 3 a.m.
> 
> 0 -> minutes
> 3 -> hours
> 15 -> Day of the Month
> * -> Month
> * -> Day of the week
> /sbin/reboot -> Comand
> 

If you are going to reboot the server regularly then make sure and 
system updates are set to not automatically install new kernel versions.
Otherwise if you get a kernel update and reboot zaptel/dahdi wont load 
until you recompile it.



More information about the asterisk-users mailing list