[svn-commits] irroot: branch irroot/distrotech-customers r318992 - /team/irroot/distrotech-...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat May 14 11:21:00 CDT 2011


Author: irroot
Date: Sat May 14 11:20:56 2011
New Revision: 318992

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=318992
Log:

Changes to safe_asterisk to work on distro


Modified:
    team/irroot/distrotech-customers/contrib/scripts/safe_asterisk

Modified: team/irroot/distrotech-customers/contrib/scripts/safe_asterisk
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers/contrib/scripts/safe_asterisk?view=diff&rev=318992&r1=318991&r2=318992
==============================================================================
--- team/irroot/distrotech-customers/contrib/scripts/safe_asterisk (original)
+++ team/irroot/distrotech-customers/contrib/scripts/safe_asterisk Sat May 14 11:20:56 2011
@@ -2,14 +2,14 @@
 # vim:textwidth=80:tabstop=4:shiftwidth=4:smartindent:autoindent
 
 CLIARGS="$*"				# Grab any args passed to safe_asterisk
-TTY=9						# TTY (if you want one) for Asterisk to run on
+#TTY=9						# TTY (if you want one) for Asterisk to run on
 CONSOLE=yes					# Whether or not you want a console
 #NOTIFY=ben at 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
-DUMPDROP=/tmp
+DUMPDROP=/var/cores/asterisk
 SLEEPSECS=4
 ASTSBINDIR=__ASTERISK_SBIN_DIR__
 ASTVARRUNDIR=__ASTERISK_VARRUN_DIR__
@@ -20,7 +20,7 @@
 KILLALLMPG123=1
 
 # run asterisk with this priority
-PRIORITY=0
+PRIORITY=-19
 
 # set system filemax on supported OSes if this variable is set
 # SYSMAXFILES=262144
@@ -119,6 +119,9 @@
 		ASTARGS="${ASTARGS} -c"
 	fi
 fi
+if [ ! -d ${DUMPDROP} ] && [ ! -e ${DUMPDROP} ];then
+	mkdir -p ${DUMPDROP}
+fi
 if test ! -w "${DUMPDROP}" ; then	
 	message "Cannot write to ${DUMPDROP}"
 	exit 1




More information about the svn-commits mailing list