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

2016-08-04 Thread Fabian Borot
when starting from the "sbin" directory it uses this as default: "/var/run/kamailio.pid"...I changed it to "PID_FILE=/var/run/kamailio/kamailio.pid" and it works fine as well the PID_FILE in the " /etc/init.d/kamailio" file is also that one: " PID_FILE=/var/run/kamailio/kamailio.pid" and that

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

2016-08-04 Thread Fabian Borot
thank you, yes, I did have to change these lines according to my install path , these are my settings: KAM=/usr/local/kamailio-4.4/sbin/kamailio KAMCFG=/usr/local/kamailio-4.4/etc/kamailio/kamailio.cfg PROG=kamailio PID_FILE=/var/run/kamailio.pid LOCK_FILE=/var/lock/subsys/kamailio RETVAL=0 DEF

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

2016-08-04 Thread Nagorny, Dimitry
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.s

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

2016-08-04 Thread Jurijs Ivolga
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 dir