[OpenSIPS-Users] Restart=always and After=mysql.service

Podrigal, Aron aronp at guaranteedplus.com
Wed Sep 16 04:14:20 CEST 2015


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" <nabeelshikder at gmail.com> wrote:

> 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
>
> Does the service file need modification for CentOS?
>
>
> On 7 September 2015 at 19:14, Nabeel <nabeelshikder at gmail.com> wrote:
>
>> 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 create this .service file for OpenSIPS.  I heard about 'respawn' but
>> don't know how exactly to use this and would prefer to use a .service file
>> like other services.
>>
>
>
> _______________________________________________
> Users mailing list
> 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/20150915/5ac49852/attachment.htm>


More information about the Users mailing list