<div dir="ltr"><font face="arial, helvetica, sans-serif">I tried that service file on CentOS 7 but got the following error when trying to start the service:</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="arial, helvetica, sans-serif">Failed at step EXEC spawning /usr/sbin/opensips: Permission denied</font></blockquote><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Changing permissions of that directory did not solve the problem:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"><span class="" style="white-space:inherit;margin:0px;padding:0px;border:0px">chmod </span><span class="" style="white-space:inherit;margin:0px;padding:0px;border:0px">+</span><span class="" style="white-space:inherit;margin:0px;padding:0px;border:0px">x /usr/sbin/opensips</span></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">chmod -R 777 /usr/sbin/opensips </font></div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Does the service file need modification for CentOS?</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font><div class="gmail_quote"><font face="arial, helvetica, sans-serif">On 7 September 2015 at 19:14, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span> wrote:<br></font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hi,</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">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.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">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.</font></div></div>
</blockquote></div><br></div></div>