[Asterisk-Users] asterisk showing more than once on ps

Michael Stahl mstahl at ocg.ca
Sat Jul 2 07:32:23 MST 2005


The system startup script /etc/init.d/asterisk calls the script
/usr/sbin/safe_asterisk

In safe_asterisk, the program is started with -c by default (console on
TTY9).

That explains why it is starting with a console, but not why it's
running so many times!  Here is what my system (FC3) shows:

[root at pbx sbin]# ps ax | grep asterisk
 3371 ?        S      0:00 /bin/sh /usr/sbin/safe_asterisk
 3417 ?        S      0:00 asterisk -vvvg -c
 6846 ?        S      0:00 asterisk -vvvg -c
 6848 ?        S      0:00 asterisk -vvvg -c
 6849 ?        S      0:00 asterisk -vvvg -c
 6850 ?        S      0:00 asterisk -vvvg -c
 6853 ?        S      0:01 asterisk -vvvg -c
 6854 ?        S      0:00 asterisk -vvvg -c
 8479 pts/1    S+     0:00 grep asterisk


Can anyone explain why asterisk is being launched 7 times?

Thanks,
OCG

-----Original Message-----
From: Luki [mailto:lugosoft at gmail.com] 
Sent: Friday, July 01, 2005 9:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] asterisk showing more than once on ps

> Do not know why, but have noticed redhat = 1, and debian = many
Not quite. RedHat Enterprise also = many at times, depending on number
of concurrent calls; usually one when idle. Maybe it has something to do
with kernel 2.4 vs 2.6 and how threads show up in ps.

--Luki




More information about the asterisk-users mailing list