[asterisk-commits] russell: branch 1.4 r115554 - /branches/1.4/contrib/init.d/rc.debian.asterisk
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 8 10:32:08 CDT 2008
Author: russell
Date: Thu May 8 10:32:08 2008
New Revision: 115554
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115554
Log:
Don't exit the script if Asterisk is not running.
(closes issue #12611)
Modified:
branches/1.4/contrib/init.d/rc.debian.asterisk
Modified: branches/1.4/contrib/init.d/rc.debian.asterisk
URL: http://svn.digium.com/view/asterisk/branches/1.4/contrib/init.d/rc.debian.asterisk?view=diff&rev=115554&r1=115553&r2=115554
==============================================================================
--- branches/1.4/contrib/init.d/rc.debian.asterisk (original)
+++ branches/1.4/contrib/init.d/rc.debian.asterisk Thu May 8 10:32:08 2008
@@ -22,6 +22,7 @@
DESC="Asterisk PBX"
# Full path to asterisk binary
DAEMON=/usr/sbin/asterisk
+TRUE=/bin/true
# Uncomment this ONLY if you know what you are doing.
# export LD_ASSUME_KERNEL=2.4.1
@@ -53,7 +54,7 @@
start)
# Check if Asterisk is already running. If it is, then bug out, because
# starting up Asterisk when Asterisk is already running is very bad.
- VERSION=`${DAEMON} -rx 'core show version'`
+ VERSION=`${DAEMON} -rx 'core show version' || ${TRUE}`
if [ "${VERSION:0:8}" = "Asterisk" ]; then # otherwise "Unable t"
echo "Asterisk is already running. $0 will exit now."
exit 1
More information about the asterisk-commits
mailing list