Jeremy Kister
2010-Nov-04 20:51 UTC
[asterisk-users] useless mpg123 processes hanging around
Running Asterisk 1.6.2.11 on debian 5.0.6 with mpg123 1.4.3 when i start asterisk, i immediately see two mpg123 processes spawned which sit there forever. I can't imagine it's normal behavior, but if it is, please explain :) # /etc/init.d/asterisk stop stopping asterisk. #[...] # /etc/init.d/asterisk start starting asterisk. # psg aster root 14573 1 0 16:29 pts/2 00:00:00 /bin/sh /usr/sbin/safe_asterisk root 14577 14573 0 16:29 pts/2 00:00:00 /usr/sbin/asterisk -f -vvvg -c root 14665 12726 0 16:33 pts/2 00:00:00 grep aster # psg mpg123 root 14605 14577 0 16:29 pts/2 00:00:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 4096 file1.mp3 file2.mp3 file3.mp3 root 14606 14605 0 16:29 pts/2 00:00:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 4096 file1.mp3 file2.mp3 file3.mp3 root 14609 12726 0 16:29 pts/2 00:00:00 grep mpg they look rather worthless: # strace -p 14605 Process 14605 attached - interrupt to quit select(0, NULL, NULL, NULL, {0, 152000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout) killing them off doesnt seem to affect anything, except when stopping asterisk: Beginning asterisk shutdown.... Executing last minute cleanups == Destroying musiconhold processes [Nov 4 16:29:39] WARNING[14554]: res_musiconhold.c:1508 moh_class_destructor: Unable to send a SIGHUP to MOH process?!!: No such process Asterisk cleanly ending (0). # egrep -v '^$|^\;' musiconhold.conf [general] ; decrease consumable cpu cycles and memory ; disabled by default [default] mode=quietmp3 directory=/var/lib/asterisk/mohmp3 sort=random Anyone have ideas if/how I can change this behavior? -- Jeremy Kister http://jeremy.kister.net./
Tzafrir Cohen
2010-Nov-04 21:05 UTC
[asterisk-users] useless mpg123 processes hanging around
On Thu, Nov 04, 2010 at 04:51:46PM -0400, Jeremy Kister wrote:> Running Asterisk 1.6.2.11 on debian 5.0.6 with mpg123 1.4.3 > > when i start asterisk, i immediately see two mpg123 processes spawned > which sit there forever. I can't imagine it's normal behavior, but if > it is, please explain :)What do you have in /etc/asterisk/musiconhold.conf ? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Warren Selby
2010-Nov-04 21:07 UTC
[asterisk-users] useless mpg123 processes hanging around
On Thu, Nov 4, 2010 at 3:51 PM, Jeremy Kister <asterisk-01 at jeremykister.com>wrote:> Running Asterisk 1.6.2.11 on debian 5.0.6 with mpg123 1.4.3 > > when i start asterisk, i immediately see two mpg123 processes spawned > which sit there forever. I can't imagine it's normal behavior, but if > it is, please explain :) ><snip>> # egrep -v '^$|^\;' musiconhold.conf > [general] > ; decrease consumable cpu cycles and memory > ; disabled by default > [default] > mode=quietmp3 > directory=/var/lib/asterisk/mohmp3 > sort=random > > Anyone have ideas if/how I can change this behavior? >It is because you're using quietmp3 as your mode. -- Thanks, --Warren Selby, dCAP http://www.selbytech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101104/41e5dcc1/attachment.htm