summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDavid Ruggles <thedavidfactor@gmail.com>2011-01-06 01:41:57 +0000
committerDavid Ruggles <thedavidfactor@gmail.com>2011-01-06 01:41:57 +0000
commit08e6f86d23f17879d6eaab38ace329e185be73fa (patch)
treeea03dbf0dc39b87887bf0c6cdcc3ea006bc3e03b /contrib
parent398d633ce0f45a7f851a1e112300ee750573184e (diff)
update safe_asterisk script
change defaults to make a little more sense. Default log location is now asterisk log location and default email notification has been changed to root on the local machine Review: https://reviewboard.asterisk.org/r/1067/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@300761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rw-r--r--contrib/scripts/safe_asterisk18
1 files changed, 10 insertions, 8 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk
index 96333e4a8..61290906b 100644
--- a/contrib/scripts/safe_asterisk
+++ b/contrib/scripts/safe_asterisk
@@ -1,18 +1,20 @@
#!/bin/sh
# vim:textwidth=80:tabstop=4:shiftwidth=4:smartindent:autoindent
-CLIARGS="$*" # Grab any args passed to safe_asterisk
+ASTSBINDIR=__ASTERISK_SBIN_DIR__
+ASTVARRUNDIR=__ASTERISK_VARRUN_DIR__
+ASTVARLOGDIR=__ASTERISK_LOG_DIR__
+
+CLIARGS="$*" # Grab any args passed to safe_asterisk
TTY=9 # TTY (if you want one) for Asterisk to run on
CONSOLE=yes # Whether or not you want a console
-#NOTIFY=ben@alkaloid.net # Who to notify about crashes
-#EXEC=/path/to/somescript # Run this command if Asterisk crashes
-#LOGFILE=/path/to/logfile # Where to place the normal logfile (disabled if blank)
-#SYSLOG=local0 # Which syslog facility to use (disabled if blank)
-MACHINE=`hostname` # To specify which machine has crashed when getting the mail
+#NOTIFY=root@localhost.localdomain # Who to notify about crashes
+#EXEC=/path/to/somescript # Run this command if Asterisk crashes
+#LOGFILE=${ASTVARLOGDIR}/safe_asterisk.log # Where to place the normal logfile (disabled if blank)
+#SYSLOG=local0 # Which syslog facility to use (disabled if blank)
+MACHINE=`hostname` # To specify which machine has crashed when getting the mail
DUMPDROP=/tmp
SLEEPSECS=4
-ASTSBINDIR=__ASTERISK_SBIN_DIR__
-ASTVARRUNDIR=__ASTERISK_VARRUN_DIR__
ASTPIDFILE=${ASTVARRUNDIR}/asterisk.pid
# comment this line out to have this script _not_ kill all mpg123 processes when