[asterisk-bugs] [Asterisk 0011463]: safe_asterisk fails to restart asterisk after crash

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Dec 12 15:39:06 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11463 
====================================================================== 
Reported By:                mmb
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11463
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:            1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-04-2007 09:12 CST
Last Modified:              12-12-2007 15:39 CST
====================================================================== 
Summary:                    safe_asterisk fails to restart asterisk after crash
Description: 
If safe_asterisk is started from a terminal, it works as expected. If it is
started from the init script, it will not restart the asterisk process. I
believe this is due to safe_asterisk writing to stderr when it is not being
redirected anywhere. The init script that calls safe_asterisk should
redirect stderr because I don't think the daemon function does.

tested on CentOS 4.5
====================================================================== 

---------------------------------------------------------------------- 
 mmb - 12-12-07 15:39  
---------------------------------------------------------------------- 
A temporary fix that seemed to work, however this bypasses initlog
competely:

In /etc/init.d/asterisk:

Change:

daemon $DAEMON $ASTARGS

to:

nohup $DAEMON $ASTARGS 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-12-07 15:39  mmb            Note Added: 0075306                          
======================================================================




More information about the asterisk-bugs mailing list