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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 17 07:39:44 CDT 2011


Author: lmadsen
Date: Tue May 17 07:39:37 2011
New Revision: 319365

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319365
Log:
Make Debian init script lsb compliant

(closes issue #18896)
Reported by: manwe
Patches: 
      debian_init_lsb.patch uploaded by manwe (license 1223)

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=319365&r1=319364&r2=319365
==============================================================================
--- branches/1.8/contrib/init.d/rc.debian.asterisk (original)
+++ branches/1.8/contrib/init.d/rc.debian.asterisk Tue May 17 07:39:37 2011
@@ -132,9 +132,12 @@
 	$0 start
 	# "restart|force-reload" starts Asterisk and returns 0 even if Asterisk was stopped (as LSB expects).
 	;;
+  status)
+       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       ;;
   *)
 	N=/etc/init.d/$NAME
-	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
 	exit 1
 	;;
 esac




More information about the svn-commits mailing list