Thanks to a suggestion from Aron, I have now solved this problem. The file
causing the permission error requires the '/usr/local' prefix in its
filepath, which the service file doesn't have. The PID filepath is also
incorrect and the EnvironmentFile value should be '-/etc/default/opensips',
not
/opensips from /etc/rc.d/rc.local on
each boot as /var/run is cleaned on shutdown.
From: Nabeel
Sent: Sunday, September 20, 2015 1:11 AM
To: Podrigal, Aron ; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Restart=always and After=mysql.service
No, I just compiled and installed OpenSIPS
either.
>>>>>>
>>>>>> The same error occurs and OpenSIPS fails to start:
>>>>>>
>>>>>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied
>>>>>>
>>>>>>
>>>>>
>>> On 20 September 2015 at 04:16, Nabeel <nabeelshik...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Unfortunately, changing the user/group to 'root' did not work either.
>>>>>>>
>>>>>>> The same er
t;>>>> Failed at step EXEC spawning /usr/sbin/opensips: Permission denied
>>>>>
>>>>>
>>>>> Hasn't anyone else seen this on CentOS?
>>>>>
>>>>>
>>>>> On 18 September 2015 at 22:21, sevpal <sev...
> *From:* Nabeel <nabeelshik...@gmail.com>
>> *Sent:* Tuesday, September 15, 2015 9:47 PM
>> *To:* OpenSIPS users mailling list <users@lists.opensips.org>
>> *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service
>>
>> I tried that service f
tion, ownership on files/folders that will be
>>>> accessed by Opensips needs to be changed.
>>>> *From:* Nabeel <nabeelshik...@gmail.com>
>>>> *Sent:* Tuesday, September 15, 2015 9:47 PM
>>>> *To:* OpenSIPS users mailling list <us
that will be
>>> accessed by Opensips needs to be changed.
>>> *From:* Nabeel <nabeelshik...@gmail.com>
>>> *Sent:* Tuesday, September 15, 2015 9:47 PM
>>> *To:* OpenSIPS users mailling list <users@lists.opensips.org>
>>> *Subject:* Re: [Op
:* Nabeel <nabeelshik...@gmail.com>
> *Sent:* Tuesday, September 15, 2015 9:47 PM
> *To:* OpenSIPS users mailling list <users@lists.opensips.org>
> *Subject:* Re: [OpenSIPS-Users] Restart=always and After=mysql.service
>
> I tried that service file on CentOS 7 but got the fo
>>
>>>> On 18 September 2015 at 22:21, sevpal <sev...@aol.com> wrote:
>>>>
>>>>> If you change User= and Group= in the service file to root, you might
>>>>> not see such a message. To run as user opensips, then user opensips must
, September 15, 2015 9:47 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Restart=always and After=mysql.service
I tried that service file on CentOS 7 but got the following error when trying
to start the service:
Failed at step EXEC spawning /usr/sbin/opensips: Permission denied
Hi,
Does anyone have a working service file for CentOS 7?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Does restoring your selinux context solve the problem.
chcon --type=bin_t /usr/sbin/opensips
If that helps make it permanent by
restorecon -R -v /usr/sbin/opensips
On Sep 15, 2015 9:47 PM, "Nabeel" wrote:
> I tried that service file on CentOS 7 but got the following
I have selinux disabled, but to test that suggestion I temporarily enabled
selinux and restored context, but the error was not resolved.
On 16 Sep 2015 03:14, "Podrigal, Aron" wrote:
> Does restoring your selinux context solve the problem.
>
> chcon --type=bin_t
I tried that service file on CentOS 7 but got the following error when
trying to start the service:
Failed at step EXEC spawning /usr/sbin/opensips: Permission denied
Changing permissions of that directory did not solve the problem:
chmod +x /usr/sbin/opensips
chmod -R 777 /usr/sbin/opensips
Hello All!
Nabeel, you're very much mistaken :)
OpenSIPS provides a systemd script for years (at least from 1.8.x).
You should have check ./packaging/fedora first, since systemd was
introduced there initially.
* https://github.com/OpenSIPS/opensips/tree/1.8/packaging/fedora
*
Hi, Nabeel, Aron!
Steve Frécinaux from BeIP added support for Jessie and systemd[1], but
it is only available on the master branch. However, you can easily use
it for other branches too.
[1]
https://github.com/OpenSIPS/opensips/blob/master/packaging/debian/opensips.service
Best regards,
Thanks for pointing that out, I had no idea we had a systemd script for
Fedora. Perhaps we should consider moving it in a more visible place.
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 09/08/2015 10:25 AM, Peter Lemenkov wrote:
Hello All!
Nabeel, you're very much mistaken
I'm using CentOS so had not looked in the other package folders for a
.service file.
Thanks.
On 8 September 2015 at 08:32, Răzvan Crainea wrote:
> Thanks for pointing that out, I had no idea we had a systemd script for
> Fedora. Perhaps we should consider moving it in a
Hi,
Most of my services have a .service file located at /usr/lib/systemd/system
where I can set 'Restart=always' or 'After=mysql.service' /
'After=mariadb.service' to make sure the server starts at the appropriate
times.
However, there is no such .service file for OpenSIPS. Please advise how to
Opensips still uses sysv LSB init scripts. So there won't be any .service
installed automatically. However I think you can generate a .service file
for opensips after installing the sysv init script by issuing the
following command.
systemctl daemon-reload
On Sep 7, 2015 2:15 PM, "Nabeel"
Sorry, after a quick look, I see daemon-reload only scans for scripts and
does not generate .service files. However, systemd knows how to start and
stop LSB type init scripts. I've been using 1.11.x branch so there wasn't a
opensips.service there. There is a service file here
22 matches
Mail list logo