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

Hugo Serrano hugo.serrano at javali.pt
Fri Jun 25 05:12:02 CDT 2010


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

-- 
Hugo Serrano
Hugo.serrano at javali.pt

Javali
Administração e Desenvolvimento de Sistemas Informáticos, Lda.
Madan Parque            Edifício VI          Campus da FCT/UNL
Quinta da Torre           2829-516 Caparica           Portugal
Phone: +351 212949666                      Fax: +351 212948313
www.javali.pt                                   info at javali.pt




More information about the asterisk-users mailing list