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

Nagorny, Dimitry dimitry.nagorny at robot5.de
Thu Aug 4 15:50:54 CEST 2016


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 at lists.sip-router.org] Im Auftrag von Fabian Borot
Gesendet: Donnerstag, 4. August 2016 15:31
An: sr-users at 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 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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160804/5b0bdb15/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.service
Type: application/octet-stream
Size: 325 bytes
Desc: kamailio.service
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160804/5b0bdb15/attachment.obj>


More information about the sr-users mailing list