[asterisk-bugs] [Asterisk 0018776]: asterisk -rx 'core show version' returns an ANSI string, which is not evaluated correctly with debian init.d script.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 9 14:25:34 CST 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18776 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18776
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-09 14:25 CST
Last Modified:              2011-02-09 14:25 CST
====================================================================== 
Summary:                    asterisk -rx 'core show version' returns an ANSI
string, which is not evaluated correctly with debian init.d script.
Description: 
this fails and tries to restart asterisk, although it's already
running.<pre>
 if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then
                echo "Asterisk is already running.  $0 will exit now."
                exit 1
        fi
 fi
 ...
     # "start-stop-daemon --oknodo" returns 0 even if Asterisk was already
running (as LSB expects):
        start-stop-daemon --start --oknodo --exec $DAEMON --
$ASTARGS</pre>

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-09 14:25 alecdavis      New Issue                                    
2011-02-09 14:25 alecdavis      Asterisk Version          => 1.8.2.3         
2011-02-09 14:25 alecdavis      Regression                => No              
2011-02-09 14:25 alecdavis      SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list