Re: [Asterisk-Users] Stable from 4/20 launching many processes

2004-04-21 Thread Christopher Arnold


On Wed, 21 Apr 2004, Steven Kokinos wrote:

> which is exactly 15 instances of asterisk. this is certainly a usual way of
> running for many different applications, but i was not aware asterisk was
> one of them. i would think there was something haywire going on, however, if
> i start a single instance of asterisk, then stop it gracefully, all
> processes do indeed stop. Is this expected behavior, or something unexpected
> that i should be concerned with?
>
Could it be that you have been using diffrent flags to ps?

Check this out:
[EMAIL PROTECTED] chris]# ps auxw|grep aste
root  1474  0.0  0.0  4196  668 ?SApr13   0:00 /bin/sh 
/usr/sbin/safe_ast erisk
root  1475  3.4  9.3 339372 96004 ?  SApr13 399:46 /usr/sbin/asterisk -fg
root   500  0.0  0.0  3580  632 pts/0S15:59   0:00 grep aste
[EMAIL PROTECTED] chris]# ps auxwm|grep aste
root  1474  0.0  0.0  4196  668 ?SApr13   0:00 /bin/sh 
/usr/sbin/safe_asterisk
root  1475  0.0  9.3 339372 96004 ?  SApr13   0:00 /usr/sbin/asterisk -fg
root  1482  0.0  9.3 339372 96004 ?  SApr13   0:00 /usr/sbin/asterisk -fg
root  1483  0.0  9.3 339372 96004 ?  SApr13   0:02 /usr/sbin/asterisk -fg
root  1484  0.0  9.3 339372 96004 ?  SApr13   0:00 /usr/sbin/asterisk -fg
root  1485  0.0  9.3 339372 96004 ?  SApr13   0:00 /usr/sbin/asterisk -fg
root  1486  0.0  9.3 339372 96004 ?  SApr13   0:20 /usr/sbin/asterisk -fg
root  1487  0.0  9.3 339372 96004 ?  SApr13   0:10 /usr/sbin/asterisk -fg
root  1488  0.0  9.3 339372 96004 ?  SApr13   8:21 /usr/sbin/asterisk -fg
root  1489  0.0  9.3 339372 96004 ?  SApr13   0:32 /usr/sbin/asterisk -fg
root  1490  0.0  9.3 339372 96004 ?  SApr13   0:15 /usr/sbin/asterisk -fg
root  1491  0.0  9.3 339372 96004 ?  SApr13   0:05 /usr/sbin/asterisk -fg
root  1492  0.0  9.3 339372 96004 ?  SApr13   0:05 /usr/sbin/asterisk -fg
root  1493  0.0  9.3 339372 96004 ?  SApr13   2:54 /usr/sbin/asterisk -fg
root  1494  0.0  9.3 339372 96004 ?  SApr13   0:00 /usr/sbin/asterisk -fg
root  1495  0.0  9.3 339372 96004 ?  SApr13   0:49 /usr/sbin/asterisk -fg
root 31437  0.1  9.3 339372 96004 ?  S13:49   0:08 /usr/sbin/asterisk -fg
root 31448  0.1  9.3 339372 96004 ?  S13:50   0:09 /usr/sbin/asterisk -fg
root 31459  0.1  9.3 339372 96004 ?  S13:51   0:08 /usr/sbin/asterisk -fg
root 32410  0.1  9.3 339372 96004 ?  S15:15   0:02 /usr/sbin/asterisk -fg
root 32547  0.1  9.3 339372 96004 ?  S15:27   0:02 /usr/sbin/asterisk -fg
root 32621  0.1  9.3 339372 96004 ?  S15:34   0:01 /usr/sbin/asterisk -fg
root 32632  0.1  9.3 339372 96004 ?  S15:35   0:02 /usr/sbin/asterisk -fg
root 32730  0.1  9.3 339372 96004 ?  S15:44   0:01 /usr/sbin/asterisk -fg
root   327  0.1  9.3 339372 96004 ?  S15:50   0:00 /usr/sbin/asterisk -fg
root   384  0.1  9.3 339372 96004 ?  S15:55   0:00 /usr/sbin/asterisk -fg
root   408  0.1  9.3 339372 96004 ?  S15:57   0:00 /usr/sbin/asterisk -fg
root   409  0.1  9.3 339372 96004 ?  S15:57   0:00 /usr/sbin/asterisk -fg
root   494  0.1  9.3 339372 96004 ?  S15:59   0:00 /usr/sbin/asterisk -fg
root   517  0.0  0.0  3588  656 pts/0S16:00   0:00 grep aste

Notice the -m in the last command.
The -m tells ps to print out all the diffrent asterisk threads.

This is a old behavour that has been around asterisk running on linux for
as long as i remember.

/Chris
___
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


[Asterisk-Users] Stable from 4/20 launching many processes

2004-04-20 Thread Steven Kokinos
i have a quick question from the latest build in the stable branch. in all
of the previous builds of asterisk i have used, calling either asterisk
itself or safe_asterisk spawns one asterisk process, like this:
 
root 11218  0.0  0.1  5244  936 pts/0S20:55   0:00 /bin/sh
/usr/sbin/safe_asterisk
root 11220  3.0  1.0 152900 4876 pts/0   S20:55   0:00 asterisk
-vvvg -c
 
however, in the latest build, i am seeing the following behavior (tested
both starting manually and with safe_asterisk):
 
root   797  0.0  0.2  4248 1136 ?S23:52   0:00 /bin/sh
/usr/sbin/safe_asterisk
root   799  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   800  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   801  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   802  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   803  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   821  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   823  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   824  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   825  0.0  0.9 102620 4952 ?   R23:52   0:00 asterisk
-vvvg -c
root   826  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   827  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   830  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   831  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   832  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
root   833  0.0  0.9 102620 4952 ?   S23:52   0:00 asterisk
-vvvg -c
 
which is exactly 15 instances of asterisk. this is certainly a usual way of
running for many different applications, but i was not aware asterisk was
one of them. i would think there was something haywire going on, however, if
i start a single instance of asterisk, then stop it gracefully, all
processes do indeed stop. Is this expected behavior, or something unexpected
that i should be concerned with?
 
Regards,
 
-Steve

___
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