[asterisk-bugs] [Asterisk 0009843]: [patch] /etc/init.d/asterisk is not "Linux Standard Base" compatible

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Jan 13 05:52:24 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=9843 
====================================================================== 
Reported By:                ibc
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   9843
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.4 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             05-31-2007 05:14 CDT
Last Modified:              01-13-2008 05:52 CST
====================================================================== 
Summary:                    [patch] /etc/init.d/asterisk is not "Linux Standard
Base" compatible
Description: 
As we can read at
http://www.linux-foundation.org/spec/refspecs/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html:

"For all other init-script actions, the init script shall return an exit
status of zero if the action was successful. Otherwise, the exit status
shall be non-zero, as defined below. In addition to straightforward
success, the following situations are also to be considered successful":

- "running start on a service already running"

But this is not true since "/etc/init.d/asterisk start" return 1 if
Asterisk was already running. It should return 0.

In fact this is because the default behaviout of "start-stop-daemon" which
returns error (1) after "start" if the service was already running. So it
could be Debian issue.
====================================================================== 

---------------------------------------------------------------------- 
 paravoid - 01-13-08 05:52  
---------------------------------------------------------------------- 
FWIW, the init.d script we have in Debian is quite different from this
one.
It's LSB compliant since ages ago and implements several other features.

I'm not able to upload it here since I'm not the only one holding
copyrights on it and hence I cannot disclaim it.

This was discussed briefly in IRC and there was an opinion that since it's
licensed under the terms of the GPLv2 and is a shell script (binary ==
source), a disclaimer may not be needed.

The latest version of our script is there:
http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.init?op=file&rev=0&sc=0


Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-13-08 05:52  paravoid       Note Added: 0076843                          
======================================================================




More information about the asterisk-bugs mailing list