[Asterisk-Users] Autostart Asterisk (crashing)!

Goran Dj. pisac at hotpop.com
Tue Feb 15 12:09:08 MST 2005


I did, but asterisk won't start when user is not loged in !?

rc.local:

if [ -x /usr/sbin/asterisk ]; then
    /usr/sbin/asterisk
    echo "ASTERISK started"
fi

I get echo "ASTERISK started" when turn on computer, but asterisk is NOT
started. When I login as root and type "ps -e" i get list:

  PID TTY          TIME CMD
    1 ?        00:00:04 init
    2 ?        00:00:00 keventd
    3 ?        00:00:00 ksoftirqd_CPU0
    4 ?        00:00:00 kswapd
    5 ?        00:00:00 bdflush
    6 ?        00:00:00 kupdated
   10 ?        00:00:00 mdrecoveryd
   58 ?        00:00:00 syslogd
   61 ?        00:00:00 klogd
  169 ?        00:00:00 khubd
  521 ?        00:00:00 inetd
  524 ?        00:00:01 sshd
  535 ?        00:00:00 crond
  537 ?        00:00:00 atd
  540 ?        00:00:00 sendmail
  543 ?        00:00:00 sendmail
  553 ?        00:00:00 smbd
  555 ?        00:00:00 nmbd
  557 ttyS0    00:00:00 gpm
  564 tty1     00:00:00 agetty
  565 tty2     00:00:00 agetty
  566 tty3     00:00:00 agetty
  567 tty4     00:00:00 agetty
  568 tty5     00:00:00 agetty
  571 tty6     00:00:00 agetty
  576 ?        00:00:06 mpg123
  579 ?        00:00:08 mpg123
  583 ?        00:00:08 mpg123
  587 ?        00:00:08 mpg123
  622 ?        00:00:00 smbd
  624 ?        00:00:00 sshd
  626 pts/0    00:00:00 bash
  639 pts/0    00:00:00 ps

Interesting here is that mpg123 is started from Asterisk, but Asterisk
isn't on this list. Seems to me that Asterisk crashed during starting.
If I execute /etc/rc.d/rc.local from my root console, Asterisk starting
normaly.

Why crashing?





----- Original Message ----- 
From: "Andrew Kohlsmith" <akohlsmith-asterisk at benshaw.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: uto 15. feb 2005 17:01
Subject: Re: [Asterisk-Users] Autostart Asterisk on Slackware?


> On February 15, 2005 10:49 am, Goran Dj. wrote:
> > How to autostart Asterisk (daemon) on Slackware 10? I know that I sh
ould
> > put something in /etc/rc.d, but what?
>
> Something like
>
> /usr/sbin/asterisk -g
>
> in /etc/rc.d/rc.local would do it.  You can craft up more complex
things if
> you like, wrap safe_asterisk or do whatver, but that'll get you
started.
>
> -A.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list