[asterisk-bugs] [Asterisk 0019405]: The debian init script is still not LSB compliant, #0018896 should not have been closed

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 3 06:55:06 CDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19405 
====================================================================== 
Reported By:                gnuday
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19405
Category:                   Utilities/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.17.2 
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-06-03 06:55 CDT
Last Modified:              2011-06-03 06:55 CDT
====================================================================== 
Summary:                    The debian init script is still not LSB compliant, 
https://issues.asterisk.org/view.php?id=18896 should not have been closed
Description: 
Hi,

If asterisk is running and the init script is ran as below:

/etc/init.d/asterisk start; echo $?

The following is returned
Asterisk is already running.  /etc/init.d/asterisk will exit now.
1

This violates the LSB standard for return values it should be 0. See:
http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html)

I've fixed this by modifying line 72. Changing return 1 to return 0. This
is actually a big deal for anybody using this script for HA cluster work.
I've successfully clustered asterisk servers with pacemaker/corosync using
the fixed script below.

Thanks for Asterisk it rocks :-)

- John Cahill

Systems Engineer
DMC
www.dmcip.com

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-03 06:55 gnuday         New Issue                                    
2011-06-03 06:55 gnuday         Asterisk Version          => 1.6.2.17.2      
2011-06-03 06:55 gnuday         Regression                => No              
2011-06-03 06:55 gnuday         SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list