From: Leif Madsen Date: Mon, 8 Mar 2010 18:07:44 +0000 (+0000) Subject: Fix Debian init script to not use -c. X-Git-Tag: 1.4.31-rc1~2^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfd13653211805bf0fccac6d53d3a2f427e3a8f5;p=thirdparty%2Fasterisk.git Fix Debian init script to not use -c. When using the init script as-is currently, it could cause issues on Debian such as high CPU usage. This fix has worked for several people so I'm implementing the change. (closes issue #16784) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue #16887) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@251309 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk index 1742d50010..96c8e7b2f5 100755 --- a/contrib/init.d/rc.debian.asterisk +++ b/contrib/init.d/rc.debian.asterisk @@ -74,7 +74,7 @@ case "$1" in # "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects): if test "x$COLOR" = "xyes" ; then export TERM=linux - start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS -c + start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS else start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS fi