From: Leif Madsen Date: Tue, 20 Sep 2011 22:18:25 +0000 (+0000) Subject: Update RedHat Init script to work with Heartbeat. X-Git-Tag: 1.8.8.0-rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71363129c240a64d3c1124dbc8847c040fb89b70;p=thirdparty%2Fasterisk.git Update RedHat Init script to work with Heartbeat. The current RedHat init script was not LSB compatible. This change will make it LSB compatible so that it can work correctly with Heartbeat. (Closes issue ASTERISK-18253) Reported by: c0rnoTa git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@337115 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/init.d/rc.redhat.asterisk b/contrib/init.d/rc.redhat.asterisk index abf3951138..01ab86247d 100755 --- a/contrib/init.d/rc.redhat.asterisk +++ b/contrib/init.d/rc.redhat.asterisk @@ -74,7 +74,7 @@ start() { VERSION=`${AST_SBIN}/asterisk -rx 'core show version'` if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then echo "Asterisk is already running." - exit 1 + exit 0 fi # Start daemons.