[asterisk-bugs] [Asterisk 0016784]: [patch] 99.9 cpu when asterisk started with init.d script

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 2 09:22:30 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16784 
====================================================================== 
Reported By:                pabelanger
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16784
Category:                   Core/General
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-06 16:40 CST
Last Modified:              2010-06-02 09:22 CDT
====================================================================== 
Summary:                    [patch] 99.9 cpu when asterisk started with init.d
script
Description: 
Odd issue, starting asterisk from /etc/init.d/asterisk (under Ubuntu 8.04)
causes asterisk to consume 100% cpu.  If you start it asterisk from the
CLI, there is no issue.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0016887 /etc/init.d/asterisk.debian consumes 10...
has duplicate       0017217 100% CPU load on debian when loading fr...
====================================================================== 

---------------------------------------------------------------------- 
 (0122768) pabelanger (manager) - 2010-06-02 09:22
 https://issues.asterisk.org/view.php?id=16784#c122768 
---------------------------------------------------------------------- 
I should also note, under Ubuntu 10.04 (Lucid) I did get a warning when
installing the script:

---
update-rc.d: warning: /etc/init.d/asterisk missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
---
The fix would be to add a new header (IE):

### BEGIN INIT INFO
# Provides:          asterisk
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Should-Start:      dahdi
# Should-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Asterisk PBX
# Description:       Controls the Asterisk PBX
### END INIT INFO
---
If we wanted to address it now. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-02 09:22 pabelanger     Note Added: 0122768                          
======================================================================




More information about the asterisk-bugs mailing list