Andrew Edmond wrote:
Asterisk Community --
I'm looking for a way to gracefully shutdown asterisk at least once a
day and bring it back online. I'm using Gentoo Linux and using
safe_asterisk from /etc/init.d/asterisk.
Anybody have a handy CLI/crontab script that accomplishes this?
Andrew




------------------------------------------------------------------------

_______________________________________________
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

How about putting this in cron, as root type crontab -e and then add the following:

# reload asterisk every day at midnight exactly $00 00 * * * /etc/init.d/asterisk stop ; sleep 2 ; /etc/init.d/asterisk start

--
Linux Home Automation         Neil Cherry       [EMAIL PROTECTED]
http://home.comcast.net/~ncherry/               (Text only)
http://hcs.sourceforge.net/                     (HCS II)
http://linuxha.blogspot.com/                    My HA Blog
_______________________________________________
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

Reply via email to