Hi Nick,

Am using centos7 and I have done the same stuffs you indicated. Copied init 
script from fedora and and am using systemctl start/stop. But opensips is not 
started. And the error is

It says” PID file /var/run/opensips.pid not readable (yet?) after start”

Any idea why PID file is not created? When I use opensipsctl start/stop it is 
working good and pid file is as well created.
Do we need to modify anything in init script? Would be a great help if there is 
some clue.

Regards,
Agalya

From: [email protected] 
[mailto:[email protected]] On Behalf Of Nick Altmann
Sent: Thursday, July 14, 2016 9:55 AM
To: OpenSIPS users mailling list <[email protected]>
Subject: Re: [OpenSIPS-Users] Query with respect to init script

Official packaging for centos uses specs and init-scripts from packaging/fedora.
You may also use our official builds from http://yum.opensips.org .
If you mean centos6, start/stop commands are /etc/init.d/opensips start and 
/etc/init.d/opensips stop .
If you have centos7, start/stop commands are systemctl start opensips and 
systemctl stop opensips .

2016-07-14 16:38 GMT+03:00 Ramachandran, Agalya (Contractor) 
<[email protected]<mailto:[email protected]>>:
Hi team,

I have a query regarding opensips init script.
After installing opensips, right now am using “opensipsctl start/stop” to start 
and stop the service.
We are using centos for our project. My query is for centos we should use init 
script from packaging/fedora or packaging/rpm?
I have placed the init script in /etc/init.d/opensips and changed the location 
to /usr/local/sbin and tried to start, but it didn’t.
It says” PID file /var/run/opensips.pid not readable (yet?) after start”
Which is the right command to start opensips ? Is it using opensipsctl 
start/stop or /etc/init.d/opensips start/stop?
And how to configure the right init script for centos and what should be done 
for make it working?
Please clarify me.

Regards,
Agalya


_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to