[OpenSIPS-Users] Query with respect to init script

Ramachandran, Agalya (Contractor) Agalya_Ramachandran at comcast.com
Thu Jul 14 22:22:06 CEST 2016


Nick,

I got it fixed. Opensips.default was not configured properly. Thank you.

Regards,
Agalya

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Ramachandran, Agalya (Contractor)
Sent: Thursday, July 14, 2016 10:55 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Query with respect to init script

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: users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org> [mailto:users-bounces at lists.opensips.org] On Behalf Of Nick Altmann
Sent: Thursday, July 14, 2016 9:55 AM
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
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) <Agalya_Ramachandran at comcast.com<mailto:Agalya_Ramachandran at comcast.com>>:
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
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160714/a3f31399/attachment-0001.htm>


More information about the Users mailing list