In the directory “/etc/event.d” create a text file called asterisk and place the following code in that file, save, and reboot.
Due to the editing of the wiki the code does not show correctly. Place the “number sign” in front of the words “The service” and “Started until” which makes them comments
- This service maintains Asterisk from the point the system is
- started untill it is shut down again.
description “Asterisk Daemon”
start on runlevel-2
stop on shutdown
respawn
exec //usr/sbin/asterisk -f