After i rebuilt my server i did default install of Asterisk using the steps off freepbx site. i used these steps before without any issues. this time i have to start Asterisk manually every time the server reboots. if i start it by using ./start_asterisk script in the freepbx directory i get this from grep root 3840 0.0 0.0 4480 544 pts/1 S 12:13 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk asterisk 3846 1.1 0.2 21388 8072 pts/1 Sl 12:13 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c if i start it by just typing asterisk at the command line i just get this root 3793 2.5 0.2 21376 7792 ? Ssl 12:12 0:00 asterisk i am guessing the script starts it up right but why is it not starting automatically? _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091019/57852797/attachment.htm
On Mon, 19 Oct 2009, Ott Rose wrote:> After i rebuilt my server i did default install of Asterisk using the > steps off freepbx site. i used these steps before without any issues. > this time i have to start Asterisk manually every time the server > reboots.[snip]> i am guessing the script starts it up right but why is it not starting > automatically?Because your OS is not executing the script? If your OS is "CentOS" or a similar, you need to "add" the script using a command like: sudo chkconfig --add asterisk If your startup script specifies the run levels correctly, you're done. If not, you will need to specify which run levels you want Asterisk started and shut down. "man chkconfig" has the rest of the pieces of the puzzle. A "non-executable" script is also a frequent "gotcha." -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
sudo chkconfig --add asterisk gives me error reading information on service asterisk: No such file or directory> Date: Mon, 19 Oct 2009 10:49:43 -0700 > From: asterisk.org at sedwards.com > To: asterisk-users at lists.digium.com > Subject: Re: [asterisk-users] asterisk services not starting up > > On Mon, 19 Oct 2009, Ott Rose wrote: > > > After i rebuilt my server i did default install of Asterisk using the > > steps off freepbx site. i used these steps before without any issues. > > this time i have to start Asterisk manually every time the server > > reboots. > > [snip] > > > i am guessing the script starts it up right but why is it not starting > > automatically? > > Because your OS is not executing the script? > > If your OS is "CentOS" or a similar, you need to "add" the script using a > command like: > > s > > If your startup script specifies the run levels correctly, you're done. If > not, you will need to specify which run levels you want Asterisk started > and shut down. "man chkconfig" has the rest of the pieces of the puzzle. > > A "non-executable" script is also a frequent "gotcha." > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST > Newline Fax: +1-760-731-3000 > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users_________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091019/b784a00c/attachment.htm
On Mon, 19 Oct 2009, Ott Rose wrote:> sudo chkconfig --add asterisk > > gives me > error reading information on service asterisk: No such file or directoryThis means that you do not have a file named asterisk in /etc/init.d/ The file located at: <where-your-asterisk-sources-are>/contrib/init.d/rc.redhat.asterisk should be a good start. Take a peek at it and if you like it: sudo cp --interactive\ <where-your-asterisk-sources-are>/contrib/init.d/rc.redhat.asterisk\ /etc/init.d/asterisk sudo chkconfig --add asterisk Note the comment block at the top of the file starting with "chkconfig: 2345 90 60" This tells chkconfig to configure Asterisk to start (and stop) at run levels 2, 3, 4, and 5. (Servers should always be running at level 3.) This is all pretty basic Unix/Linux system administration stuff, not at all specific to Asterisk. You may want to pick up a good book to give you more background and enhance your skills. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000