From: Russell Bryant Date: Thu, 8 May 2008 14:40:53 +0000 (+0000) Subject: Use the same method for executing Asterisk as the rest of the script. X-Git-Tag: 1.4.20~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ae49dd240b93e5c08431ae03a1a6273e3a49208;p=thirdparty%2Fasterisk.git Use the same method for executing Asterisk as the rest of the script. (closes issue #12611) Reported by: b_plessis git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115545 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk index b5b150c98e..6a556f2f7d 100755 --- a/contrib/init.d/rc.debian.asterisk +++ b/contrib/init.d/rc.debian.asterisk @@ -53,7 +53,7 @@ case "$1" in 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=`${ASTSBINDIR}/asterisk -rx 'core show version'` + VERSION=`${DAEMON} -rx 'core show version'` if [ "${VERSION:0:8}" = "Asterisk" ]; then # otherwise "Unable t" echo "Asterisk is already running. $0 will exit now." exit 1