[Asterisk-Users] automatic startup

Christopher Dobbs crdobbs at eracew.net
Thu Dec 30 13:41:19 MST 2004


I know that several people have sent suggestions about init scripts, 
but, I use inittab to re spawn * sot to do a restart all I do is issue a 
"Stop Now" at the CLI.

I am including my scripts and an excerpt of some of my system files.

All tho, the suggestion about loading the modules in rc.local is pure gold.

--
Christopher Dobbs

Michael Graves wrote:

>Hi All,
>
>I've been thinking about taking steps to make my * server more
>reliable. In particular I'd like to have it automatically start * after
>a power loss. Can anyone here provide some guidance as to how to
>accomplish this. Keep in mind that I have a TDM400p that needs a couple
>of modprobe commands before I can start * itself.
>
>I had a look at the wiki  but it seems light on this topic.
>
>Thanks,
>
>Michael
>--
>Michael Graves                           mgraves at pixelpower.com
>Sr. Product Specialist                          www.pixelpower.com
>Pixel Power Inc.                                 mgraves at mstvp.com
>
>o713-861-4005
>o800-905-6412
>c713-201-1262
>
>
>
>_______________________________________________
>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
>  
>

-------------- next part --------------
#! /bin/bash

chvt 24
asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvc &> /dev/tty24 < /dev/tty24
sleep 5

-------------- next part --------------
#! /bin/bash

asterisk -r
-------------- next part --------------

ast:12345:respawn:/sbin/astmain

-------------- next part --------------
pbx:x:0:0::/root:/sbin/astrun
-------------- next part --------------
#! /bin/bash

exec ssh pbx at pbx
-------------- next part --------------
#! /bin/bash

exec ssh root at pbx


More information about the asterisk-users mailing list