[asterisk-bugs] [Asterisk 0016887]: /etc/init.d/asterisk.debian consumes 100% CPU

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 8 12:10:02 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16887 
====================================================================== 
Reported By:                jlpedrosa
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16887
Category:                   General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-23 09:50 CST
Last Modified:              2010-03-08 12:10 CST
====================================================================== 
Summary:                    /etc/init.d/asterisk.debian consumes 100% CPU
Description: 
Hi all

An erroneous line in /etc/init.d/asterisk.debian makes the start script
consume one core:  the start-stop-deamon command line if $COLOR=yes  sends
the -c option to asterisk binary (give me console) and as a serivce it
can't be done.
Result: asterisk working but consuming whole server.
 
these are the lines.

 if test "x$COLOR" = "xyes" ; then
                export TERM=linux
                start-stop-daemon --start --oknodo --background --exec
$DAEMON -- $ASTARGS -c
        else
                start-stop-daemon --start --oknodo --exec $DAEMON --
$ASTARGS
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0016784 [patch] 99.9 cpu when asterisk started ...
====================================================================== 

---------------------------------------------------------------------- 
 (0119132) svnbot (reporter) - 2010-03-08 12:10
 https://issues.asterisk.org/view.php?id=16887#c119132 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 251312

U   branches/1.6.1/contrib/init.d/rc.debian.asterisk

------------------------------------------------------------------------
r251312 | lmadsen | 2010-03-08 12:09:57 -0600 (Mon, 08 Mar 2010) | 28
lines

Merged revisions 251310 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r251310 | lmadsen | 2010-03-08 12:08:44 -0600 (Mon, 08 Mar 2010) | 21
lines
  
  Merged revisions 251309 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r251309 | lmadsen | 2010-03-08 12:07:44 -0600 (Mon, 08 Mar 2010) | 13
lines
    
    Fix Debian init script to not use -c.
    When using the init script as-is currently, it could cause issues on
Debian
    such as high CPU usage. This fix has worked for several people so I'm
    implementing the change.
    
    
    (closes issue https://issues.asterisk.org/view.php?id=16784)
    Reported by: pabelanger
    Tested by: pabelanger, mnick, davidw, mutineer612
    
    (closes issue https://issues.asterisk.org/view.php?id=16887)
    Reported by: jlpedrosa
    Tested by: jlpedrosa, mutineer612
  ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=251312 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-08 12:10 svnbot         Checkin                                      
2010-03-08 12:10 svnbot         Note Added: 0119132                          
======================================================================




More information about the asterisk-bugs mailing list