[svn-commits] kmoore: branch 1.8 r349529 - /branches/1.8/contrib/init.d/rc.debian.asterisk

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 4 14:23:07 CST 2012


Author: kmoore
Date: Wed Jan  4 14:23:04 2012
New Revision: 349529

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=349529
Log:
Make debian init script conform to the LSB standard

Previously, this init script would return 1 if Asterisk was already running.
This is incorrect behavior according to the LSB standard and has been fixed by
returning 0 instead.

(closes issue ASTERISK-17958)
Reported-by: johnc

Modified:
    branches/1.8/contrib/init.d/rc.debian.asterisk

Modified: branches/1.8/contrib/init.d/rc.debian.asterisk
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/contrib/init.d/rc.debian.asterisk?view=diff&rev=349529&r1=349528&r2=349529
==============================================================================
--- branches/1.8/contrib/init.d/rc.debian.asterisk (original)
+++ branches/1.8/contrib/init.d/rc.debian.asterisk Wed Jan  4 14:23:04 2012
@@ -69,7 +69,7 @@
 	VERSION=`${DAEMON} -rx 'core show version' || ${TRUE}`
 	if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then
 		echo "Asterisk is already running.  $0 will exit now."
-		exit 1
+		exit 0
 	fi
 
 	log_begin_msg "Starting $DESC: $NAME"




More information about the svn-commits mailing list