Hi All, I which to use Daemontools to watch asterisk process.
Step.1 After install daemontools, i add a line in /etc/inittab SV:123456:respawn:/usr/local/bin/svscanboot Step.2 and create /etc/asterisk/run #!/bin/bash echo -n "Starting Asterisk PBX: " exec /usr/sbin/asterisk Step.3 ln -sf /etc/asterisk /service/asterisk kill -1 1 Step.4 ps auxww |grep asterisk [EMAIL PROTECTED] scripts]# ps auxww |grep asterisk root 26107 0.0 0.0 1336 224 ? S 11:38 0:00 readproctitle service errors: ...Asterisk already running on /var/run/asterisk.ctl. Use 'asterisk -r' to connect.?Starting Asterisk PBX: Asterisk already running on /var/run/asterisk.ctl. Use 'asterisk -r' to connect.?Starting Asterisk PBX: Asterisk already running on /var/run/asterisk.ctl. Use 'asterisk -r' to connect.?Starting Asterisk PBX: Asterisk already running on /var/run/asterisk.ctl. Use 'asterisk -r' to connect.? root 26108 0.0 0.1 1340 264 ? S 11:38 0:00 supervise asterisk root 26318 1.5 5.3 220360 13652 ? S 11:39 0:00 /usr/sbin/asterisk root 26421 1.0 0.0 0 0 ? Z 11:39 0:00 [asterisk <defunct>] root 26424 0.0 0.2 3572 628 pts/0 S 11:39 0:00 grep asterisk Now it seems run to monitor Asterisk, but it have one Zombie [asterisk <defunct>], What is wrong about this procedure. Best Regards, _______________________________________________ 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
