Autostart asterisk

I was able to autostart my asterisk using debian update-rc.d but i cant remember how i did that.

update-rc.d asterisk default … somethin like that but im getting error… :frowning:
help. thanks.

Dont know debian but I know in centOS (which is RHLE free) it is in /etc/rc.local

in asterisk source directory, do make config
thsi adds config scripts. I know it works for redhat type systems, might also work for others.

same thing works for zaptel too

GOt it. Here are the steps i did for reference.

ln -s /usr/sbin/asterisk /etc/init.d/

update-rc.d asterisk [runlevels]
update-rc.d asterisk default

we just edit our rc.local to run /usr/sbin/safe_asterisk after loading our zap modules and running ztcfg…works like a champ.

i have script in /etc/init.d/ {start|stop|restart}
linked to rc2.d rc0.d and rc6.d which start * and sets debug/verbosity level

Btw i had this problem on Debian:

i edited asterisk.conf and added this:
verbose => 5

then did:
cd /etc/init.d
ln -s asterisk /usr/sbin/asterisk
update-rc.d asterisk defaults

during boot: asterisk will run w/o CLI and command prompt will not appear
during reset: asterisk will start again

removed the [options] and everything went back to normal.