The Hitchhiker's Guide to Asterisk | ||
---|---|---|
<<< Previous | Installing Asterisk | Next >>> |
Starting processes at boot time are different among the different operating systems so it is best to consult your OS documentation for how to do this. However there are some sample scripts located in /usr/src/asterisk/contrib/init.d/.
You can either start Asterisk using the /usr/sbin/asterisk command, or ideally, use the /usr/sbin/safe_asterisk script which will attempt to reload Asterisk if it crashes. In RedHat based systems you can add this to your /etc/rc.d/rc.local file, however this will not shutdown Asterisk very cleanly during a reboot or shutdown.
In a RedHat environment you may be able to get a working rc.d/init.d script by running the following commands. This will copy the script from /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk to /etc/rc.d/init.d/asterisk. It will then run the /sbin/chkconfig --add asterisk command.
<<< Previous | Home | Next >>> |
Starting Asterisk | Up | Asterisk Channels |