I was able to add Asterisk as a service to Fedora 10 by doing the following:
[b]Copy the safe_asterisk script to the /etc/rc.d/init.d/ directory via this command:
cp safe_asterisk /etc/rc.d/init.d/asterisk
Then, changed perms to 755:
chmod 755 asterisk
Then, vi thesafe_asterisk script and add the following lines:
chkconfig: - 85 15
description: Add Asterisk to the server as a service for start on boot
Chkconfig â€“add asterisk from the /etc/rc.d/init.d/ directory
It still does not start…
First of all I have to be root to start the asterisk application… why?
Second the error from the safe_asterisk log is the following:
safe_asterisk: Asterisk died with code 127.
safe_asterisk: Automatically restarting Asterisk.
Where is the issue? Permissions? if so, what should they be?