(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
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