Stefan Viljoen
2015-Jul-23 09:54 UTC
[asterisk-users] Centos 6.5 Asterisk 1.8.11.0 - starts in rc.local, but not contactible?
Hi JG Thanks for replying.>Depending on the hardware you are using, simply calling asterisk might notbe enough, as there>could be dependencies on third party drivers. Depending on how asterisk wasinstalled, one>probably also has to look at various permissions. For example, asterisk -rmight fail simply>because you are calling it from an account with insufficient rights. It'sdifficult to tell>given your information.>Maybe the following will help. If you look into the contrib/init.ddirectory (inside the src>tree) you'll find the rc.redhat.asterisk script. Rename it and put it intothe /etc/init.d>directory and issue "chkconfig --add asterisk" as well as "chkconfigasterisk 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
jg
2015-Jul-23 09:55 UTC
[asterisk-users] Centos 6.5 Asterisk 1.8.11.0 - starts in rc.local, but not contactible?
> 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. > > >Okey-dokey. What happens when you start asterisk with "asterisk -c" from a root account? jg