Sunday, June 15, 2008

Start asterisk on boot

I always forget how to start asterisk manually. The steps after installation are:

myserver:/etc/init.d# cp /usr/src/asterisk-1.4.21/contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk

myserver:/etc/init.d# cd /etc/init.d/

myserver:/etc/init.d# ls asterisk
asterisk

myserver:/etc/init.d# chmod 755 asterisk


myserver:/etc/init.d# update-rc.d asterisk defaults
Adding system startup for /etc/init.d/asterisk ...
/etc/rc0.d/K20asterisk -> ../init.d/asterisk
/etc/rc1.d/K20asterisk -> ../init.d/asterisk
/etc/rc6.d/K20asterisk -> ../init.d/asterisk
/etc/rc2.d/S20asterisk -> ../init.d/asterisk
/etc/rc3.d/S20asterisk -> ../init.d/asterisk
/etc/rc4.d/S20asterisk -> ../init.d/asterisk
/etc/rc5.d/S20asterisk -> ../init.d/asterisk

myserver:/etc/init.d#

No comments: