[asterisk-users] Error of FreePBX after installing from Yum Repository of Asterisk

Steve Edwards asterisk.org at sedwards.com
Mon Jun 7 14:29:22 CDT 2010


On Mon, 7 Jun 2010, bruce bruce wrote:

> CentOS 5.4 and asterisk does stay running after it's loaded by asterisk 
> -g. But the chkconfig --add asterisk doesn't work :(

What does "chkconfig --list asterisk" show?

The "add" command looks in the asterisk script for a line that looks like:

 	# chkconfig: 2345 98 98

This says that chkconfig should create the appropriate links in the 
/etc/rc{x}.d/ hierarchy so that Asterisk will be started at runlevels 2, 
3, 4, 5 with a start priority of 98 (see "man chkconfig" for details) and 
a stop priority of 98. Since CentOS servers should be running at runlevel 
3, the 2, 4, and 5 are superfluous.

If there is no such line, chkconfig will not create the appropriate links.

Also, if /etc/init.d/asterisk does not have execute privileges, it will 
not be executed on startup and Asterisk will not be running as expected.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list