Title: Message

Wouldn’t this work?

Just drop this script in the cron.daily directory and modify /etc/crontab

 

//script//

#!/bin/bash

asterisk –rx “restart gracefully”

 

 

/etc/crontab

[EMAIL PROTECTED] # cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
 
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 2 * * * root run-parts /etc/cron.daily  --This tells it run scripts in the cron.daily directory at 2am
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
 

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Andrew Edmond
Sent: Wednesday, October 20, 2004 12:15 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Graceful CLI/crontab reboot

 

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

Reply via email to