Summary: | ASTERISK-15678: /etc/init.d/asterisk.debian consumes 100% CPU | ||
Reporter: | jlpedrosa (jlpedrosa) | Labels: | |
Date Opened: | 2010-02-23 09:50:27.000-0600 | Date Closed: | 2010-03-08 12:10:25.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
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 | ||
Comments: | By: Leif Madsen (lmadsen) 2010-02-24 09:48:19.000-0600 Try the patch on the issue associated with this one. I think that should resolve the issue. Let me know so it can be committed. By: jlpedrosa (jlpedrosa) 2010-02-24 09:51:39.000-0600 Hi! I already manually patched it by removing the -c at the end, (same as in patch) and it solves the problem. By: mutineer612 (mutineer612) 2010-03-07 22:14:52.000-0600 I experienced this issue running 1.6.2.4 with Ubuntu server 9.10. I removed the '-c' from the end /etc/init.d/asterisk line 85, and cpu utilization is now normal. Hopefully this is fixed in 1.6.2.5. Original line 85: start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS -c Fixed Line 85: start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS By: Digium Subversion (svnbot) 2010-03-08 12:07:52.000-0600 Repository: asterisk Revision: 251309 U branches/1.4/contrib/init.d/rc.debian.asterisk ------------------------------------------------------------------------ r251309 | lmadsen | 2010-03-08 12:07:45 -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 ASTERISK-15589) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue ASTERISK-15678) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=251309 By: Digium Subversion (svnbot) 2010-03-08 12:08:48.000-0600 Repository: asterisk Revision: 251310 _U trunk/ U trunk/contrib/init.d/rc.debian.asterisk ------------------------------------------------------------------------ r251310 | lmadsen | 2010-03-08 12:08:45 -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 ASTERISK-15589) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue ASTERISK-15678) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=251310 By: Digium Subversion (svnbot) 2010-03-08 12:09:33.000-0600 Repository: asterisk Revision: 251311 U branches/1.6.2/contrib/init.d/rc.debian.asterisk ------------------------------------------------------------------------ r251311 | lmadsen | 2010-03-08 12:09:29 -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 ASTERISK-15589) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue ASTERISK-15678) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=251311 By: Digium Subversion (svnbot) 2010-03-08 12:10:00.000-0600 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 ASTERISK-15589) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue ASTERISK-15678) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=251312 By: Digium Subversion (svnbot) 2010-03-08 12:10:24.000-0600 Repository: asterisk Revision: 251313 U branches/1.6.0/contrib/init.d/rc.debian.asterisk ------------------------------------------------------------------------ r251313 | lmadsen | 2010-03-08 12:10:21 -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 ASTERISK-15589) Reported by: pabelanger Tested by: pabelanger, mnick, davidw, mutineer612 (closes issue ASTERISK-15678) Reported by: jlpedrosa Tested by: jlpedrosa, mutineer612 ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=251313 |