[SR-Users] Kamailio 4.4 wont start on CentOS 7 using script

Jurijs Ivolga jurijs.ivolga at gmail.com
Thu Aug 4 15:39:15 CEST 2016


Hi,

I'm not sure about Centos 7, but on Centos 6, you need to update kamailio
init.d script to make it work. Following lines should be updated:
KAM=/usr/local/sbin/kamailio
KAMCFG=/usr/local/etc/kamailio/kamailio.cfg
PROG=kamailio
PID_FILE=/var/run/kamailio/kamailio.pid

And you need to create directory /var/run/kamailio and add access rights to
kamailio user.

With kind regards,

Jurijs

On Thu, Aug 4, 2016 at 4:30 PM, Fabian Borot <fborot at hotmail.com> wrote:

> Hello
>
> I installed/compiled version 4.4 on CentOS 7. When I start the server like
> this: "./kamctl start" it works but when I try to use the script:
> "/etc/init.d/kamailio" it fails
>
>
>
> [root at ar-mia-proxy-01 sbin]# /etc/init.d/kamailio start
> Starting kamailio (via systemctl):  Job for kamailio.service failed
> because the control process exited with error code. See "systemctl status
> kamailio.service" and "journalctl -xe" for details.
>                                                            [FAILED]
> [root at ar-mia-proxy-01 sbin]#
>
> when running the "status" I see this:
>
> [root at ar-mia-proxy-01 sbin]# /etc/init.d/kamailio status
> รข kamailio.service - LSB: Kamailio (OpenSER) - the Open Source SIP Server
>    Loaded: loaded (/etc/rc.d/init.d/kamailio)
>    Active: failed (Result: exit-code) since Thu 2016-08-04 15:25:59 GMT;
> 14s ago
>      Docs: man:systemd-sysv-generator(8)
>   Process: 5556 ExecStart=/etc/rc.d/init.d/kamailio start (code=exited,
> status=1/FAILURE)
>
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Starting LSB:
> Kamailio (OpenSER) - the Open Source SIP Server...
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com kamailio[5556]: Starting kamailio:
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service:
> control process exited, code=exited status=1
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Failed to start LSB:
> Kamailio (OpenSER) - the Open Source SIP Server.
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Unit kamailio.service
> entered failed state.
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service
> failed.
> [root at ar-mia-proxy-01 sbin]#
>
> I welcome all ideas, thank you in advance
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160804/c712c314/attachment.html>


More information about the sr-users mailing list