All,
I have Asterisk, latest version, installed on Fedora 10. However, everytime I reboot the box the Asterisk service does not start. In order to make it start I have to su root then type asterisk.
I am new to Linux, so, can someone please assist with Asterisk starting on operating system boot?
I have looked into the Services Configuration Tool in Fedora and I do not see Asterisk available as a service to configure. Also, I have tried to run the chkconfig --level 35 asterisk command from root and I still do not have any success… I guess that it is my fault for being a windows guy for all these years…
Could you please provide me with more detail as to how I can get the script that will make sure Asterisk is running? If the application fails I would like to have it back up on its own…
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
Then, run:
Chkconfig –add asterisk from the /etc/rc.d/init.d/ directory
Reboot Fedora[/b]
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[3252]: Asterisk died with code 12.
safe_asterisk[3252]: Automatically restarting Asterisk.
Where is the issue? Permissions? if so, what should they be?
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
Then, run:
Chkconfig –add asterisk from the /etc/rc.d/init.d/ directory
Reboot Fedora[/b]
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[3252]: Asterisk died with code 127.
safe_asterisk[3252]: Automatically restarting Asterisk.
Where is the issue? Permissions? if so, what should they be?
I did the make config command from within Asterisk before trying to set it as a service. I can launch the application just fine if I su root and type asterisk via teminal. However, I have to be root and I have to manually start the application.
I would like the application to start upon boot of the OS. I just do not know how…