[Asterisk-Users] multiple instances of asterisk spawning

Steven Kokinos steve at kokinos.com
Tue Apr 27 08:04:02 MST 2004


Hello-

I have noticed that since i upgraded my kernel, asterisk spawns many 
copies (usually approximately 18) when starting up. It then runs fine, 
but there doesn't seem to be any reason for this behavior. I have tried 
moving between different kernel versions, and all but the stock fedora 
core 1 kernel exhibits the same behavior.

I have verified running this with both safe_asterisk (as I usually do) 
as well as manually at the command line with no difference in behavior.

root       747  0.0  0.2  4248 1136 ?        S    Apr23   0:00 /bin/sh 
/usr/sbin/safe_asterisk
root       749  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       750  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       751  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       752  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       753  0.0  1.5 116328 7656 ?       S    Apr23   0:28 asterisk 
-vvvg -c
root       758  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       773  0.0  1.5 116328 7656 ?       S    Apr23   0:04 asterisk 
-vvvg -c
root       774  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       775  0.0  1.5 116328 7656 ?       R    Apr23   3:05 asterisk 
-vvvg -c
root       776  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       777  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       781  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       782  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       783  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root       784  0.0  1.5 116328 7656 ?       S    Apr23   0:00 asterisk 
-vvvg -c
root      6029  0.0  1.5 116328 7656 ?       S    Apr26   0:00 asterisk 
-vvvg -c
root      6243  0.0  0.1  2920  912 pts/0    S    01:09   0:00 asterisk 
-r
root      6244  0.0  1.5 116328 7656 ?       S    01:09   0:00 asterisk 
-vvvg -c

[root at phl-01 run]# cat /var/run/asterisk.pid
749

So asterisk does appear to be binding to the first instance (and 
reloading the config with changes does have an effect, proving that 
conclusion to a degree). I've also verified going back and forth 
between asterisk builds (I'm using the stable tree) yields no 
difference.

Strangely - if you look at the PID's, a few of the instances are out of 
sequence, and have been spawned after the system was running for a few 
days.

Does anyone have any ideas on how to resolve this?

-Steve




More information about the asterisk-users mailing list