[asterisk-users] Centos 6.5 Asterisk 1.8.11.0 - starts in rc.local, but not contactible?

Stefan Viljoen viljoens at verishare.co.za
Thu Jul 23 04:54:20 CDT 2015


Hi JG

Thanks for replying.

>Depending on the hardware you are using, simply calling asterisk might not
be enough, as there 
>could be dependencies on third party drivers. Depending on how asterisk was
installed, one 
>probably also has to look at various permissions. For example, asterisk -r
might fail simply 
>because you are calling it from an account with insufficient rights. It's
difficult to tell 
>given your information.

>Maybe the following will help. If you look into the contrib/init.d
directory (inside the src 
>tree) you'll find the rc.redhat.asterisk script. Rename it and put it into
the /etc/init.d 
>directory and issue "chkconfig --add asterisk" as well as "chkconfig
asterisk on" and your 
>problem should be solved. You can check the current settings with
"chkconfig --list asterisk". 
>The Redhat script works nicely under CentOS.

Hmm ok - I made sure to run

make config

in the Asterisk source folder which installed the correct scripts into rc.d
and so forth.

I then did

chkconfig asterisk on

and rebooted the box.

The parameters remain the same, asterisk is there if you do a ps -aux | grep
asterisk but it still is in a non-working state and not contacible via
asterisk -r.

Since it is an old box and the reason for trying to get it going is mostly
academic, I think I'm just going to dump the box and reformat it with Centos
7.

Strange though, I have installed about 17 other boxes exactly this way on
broadly the same hardware and all are currently running fine with Centos 6.5
and Asterisk 1.8.11.0

Thanks anyway, the problem is clearly deeper than I though since even the
"official" way you detail above fails to start Asterisk as an account that
can start it on system boot.

Even when root is the only account on the machine - which leads me to
believe I have some basic error in my Centos 6.5 installation so I'll just
try it again or try Centos 7.

Thanks a lot.

Kind regards

Stefan




More information about the asterisk-users mailing list