Hello Fabian,

 

I had a similar problem and build my own little kamailio.service file for CentOS7. Please find it attached, just drop it under /etc/systemd/system/ and give it execution permissions and activate it afterwards with „systemctl enable kamailio.service“ and „systemctl start kamailio.service“. You might have to change the path’s to match your installation.

 

Regards

Dimitry Nagorny

Working Student Software Developer

 

Von: sr-users [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Fabian Borot
Gesendet: Donnerstag, 4. August 2016 15:31
An: sr-users@lists.sip-router.org
Betreff: [SR-Users] Kamailio 4.4 wont start on CentOS 7 using script

 

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@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@ar-mia-proxy-01 sbin]#

 

when running the "status" I see this:

 

[root@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@ar-mia-proxy-01 sbin]#

 

I welcome all ideas, thank you in advance