tomh / rpms / asterisk

Forked from rpms/asterisk 6 years ago
Clone

Blame 0009-Use-consistently-in-the-Fedora-init-script.patch

79d1ed7
From 382a378507925b935b130241bd73d2d7e402c006 Mon Sep 17 00:00:00 2001
79d1ed7
From: "Jeffrey C. Ollie" <jeff@ocjtech.us>
79d1ed7
Date: Tue, 20 Sep 2011 09:12:02 -0500
547b788
Subject: [PATCH 09/14] Use  consistently in the Fedora init script
79d1ed7
79d1ed7
---
79d1ed7
 contrib/init.d/rc.redhat.asterisk |    2 +-
79d1ed7
 1 files changed, 1 insertions(+), 1 deletions(-)
79d1ed7
79d1ed7
diff --git a/contrib/init.d/rc.redhat.asterisk b/contrib/init.d/rc.redhat.asterisk
79d1ed7
index 186fc18..7415138 100755
79d1ed7
--- a/contrib/init.d/rc.redhat.asterisk
79d1ed7
+++ b/contrib/init.d/rc.redhat.asterisk
79d1ed7
@@ -82,7 +82,7 @@ RETVAL=0
79d1ed7
 start() {
79d1ed7
 	# Check if Asterisk is already running.  If it is, then bug out, because
79d1ed7
 	# starting safe_asterisk when Asterisk is running is very bad.
79d1ed7
-	VERSION=`${AST_SBIN}/asterisk -rx 'core show version'`
79d1ed7
+	VERSION=`$DAEMON -rx 'core show version'`
79d1ed7
 	if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then
79d1ed7
 		echo "Asterisk is already running."
79d1ed7
 		exit 1
79d1ed7
-- 
79d1ed7
1.7.6.2
79d1ed7