[asterisk-bugs] [Asterisk 0012611]: contrib/initd/rc.debian.asterisk non working since rc2 patch

noreply at bugs.digium.com noreply at bugs.digium.com
Thu May 8 09:32:36 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12611 
====================================================================== 
Reported By:                b_plessis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12611
Category:                   Utilities/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.20 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-08-2008 09:32 CDT
Last Modified:              05-08-2008 09:32 CDT
====================================================================== 
Summary:                    contrib/initd/rc.debian.asterisk non working since
rc2 patch
Description: 

Usage of unset variable ASTSBINDIR and a call to an application which 
will return an exit code != 0 in a 'set -e' script lead to unability 
of starting asterisk.

Proposed patch:
--- contrib/init.d/rc.debian.asterisk  2008-05-08 02:51:45.000000000
+0200
+++ contrib/init.d/rc.debian.asterisk        2008-05-08 16:25:09.000000000
+0200
@@ -53,7 +53,9 @@
   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

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-08-08 09:32  b_plessis      Asterisk Version          => 1.4.20          
05-08-08 09:32  b_plessis      SVN Branch (only for SVN checkou => N/A          
  
======================================================================




More information about the asterisk-bugs mailing list