Hello All ,

On Sat, 2 Jul 2005, Michael Stahl wrote:
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:

[EMAIL PROTECTED] 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:[EMAIL PROTECTED]
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

        Below ps is from a * server on slackware 10.0 using the
        command to start(**) .  So I am not sure the '-c' is what is
        creating the multiple threads .  linux-2.6 issue maybe ?
                Hth ,  JimL

# ps -auxww | grep aster
root       115  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       123  0.0  1.1 11916 5944 ?        S    Jun30   0:01 
/usr/sbin/asterisk -d -v -v -v
root       125  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       130  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       131  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       132  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       139  0.2  1.1 11916 5944 ?        S    Jun30   6:08 
/usr/sbin/asterisk -d -v -v -v
root       155  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       156  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       157  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v
root       158  0.0  1.1 11916 5944 ?        S    Jun30   0:00 
/usr/sbin/asterisk -d -v -v -v

(**)
# after expansion of variables . /usr/sbin/asterisk -d -v -v -v >> /var/log/asterisk/debug

# sudo asterisk -V
Asterisk CVS-HEAD-05/01/05-14:10:09

# uname -a
Linux asterisk-1 2.6.11.8 #1 Sun May 1 12:04:14 MDT 2005 i686 unknown unknown 
GNU/Linu

--
+------------------------------------------------------------------+
| James   W.   Laferriere | System    Techniques | Give me VMS     |
| Network        Engineer | 3542 Broken Yoke Dr. |  Give me Linux  |
| [EMAIL PROTECTED] | Billings , MT. 59105 |   only  on  AXP |
+------------------------------------------------------------------+
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to