[asterisk-commits] kmoore: branch 10 r349532 - in /branches/10: ./ contrib/init.d/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 4 14:23:49 CST 2012


Author: kmoore
Date: Wed Jan  4 14:23:45 2012
New Revision: 349532

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=349532
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
........

Merged revisions 349529 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/contrib/init.d/rc.debian.asterisk

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/contrib/init.d/rc.debian.asterisk
URL: http://svnview.digium.com/svn/asterisk/branches/10/contrib/init.d/rc.debian.asterisk?view=diff&rev=349532&r1=349531&r2=349532
==============================================================================
--- branches/10/contrib/init.d/rc.debian.asterisk (original)
+++ branches/10/contrib/init.d/rc.debian.asterisk Wed Jan  4 14:23:45 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 asterisk-commits mailing list