[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:35:55 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12611 
====================================================================== 
Reported By:                b_plessis
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12611
Category:                   Utilities/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
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:35 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

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

---------------------------------------------------------------------- 
 svnbot - 05-08-08 09:35  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 115545

U   branches/1.4/contrib/init.d/rc.debian.asterisk

------------------------------------------------------------------------
r115545 | russell | 2008-05-08 09:35:12 -0500 (Thu, 08 May 2008) | 4 lines

Use the same method for executing Asterisk as the rest of the script.
(closes issue http://bugs.digium.com/view.php?id=12611)
Reported by: b_plessis

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=115545 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-08-08 09:35  svnbot         Note Added: 0086589                          
05-08-08 09:35  svnbot         Status                   new => assigned     
05-08-08 09:35  svnbot         Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list