[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 14:17:17 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 14:17 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
======================================================================
----------------------------------------------------------------------
otherwiseguy - 12-12-07 14:17
----------------------------------------------------------------------
Last I checked, redhat-based distros didn't do this correctly. Problem (if
it is still the same) was how the daemon() function for initscripts calls
safe_asterisk. Seems like I had to remove a '-c' from initlog call to get
it to work right. Will put together a test box and see if I can find a
fix.
Issue History
Date Modified Username Field Change
======================================================================
12-12-07 14:17 otherwiseguy Note Added: 0075299
======================================================================
More information about the asterisk-bugs
mailing list