<div dir="ltr">Can you post the strace output by running<div><br></div><div>sudo strace -ff -o /tmp/opensips_strace_output systemctl start opensips.service<br></div><div>cat /tmp/opensips_strace_output*</div><div><br></div><div>That will help see where the error occurs.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 19, 2015 at 11:21 PM, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why can't the service file be automatically generated at the time of installation/compilation on the relevant OS? <div>It seems to be quite a basic feature missing.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 20 September 2015 at 04:16, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Unfortunately, changing the user/group to 'root' did not work either.<div><br></div><div>The same error occurs and OpenSIPS fails to start:<span><br><div><br></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">Failed at step EXEC spawning /usr/sbin/opensips: Permission denied</blockquote><div><br></div></span><div> Hasn't anyone else seen this on CentOS?</div></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2015 at 22:21, sevpal <span dir="ltr"><<a href="mailto:sevpal@aol.com" target="_blank">sevpal@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>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 exist on
the system; in addition, ownership on files/folders that will be accessed by
Opensips needs to be changed.</div>
<div>
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline"></div>
<div style="FONT:10pt tahoma">
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="nabeelshikder@gmail.com" href="mailto:nabeelshikder@gmail.com" target="_blank">Nabeel</a> </div>
<div><b>Sent:</b> Tuesday, September 15, 2015 9:47 PM</div>
<div><b>To:</b> <a title="users@lists.opensips.org" href="mailto:users@lists.opensips.org" target="_blank">OpenSIPS users mailling list</a> </div>
<div><b>Subject:</b> Re: [OpenSIPS-Users] Restart=always and
After=mysql.service</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline"><div><div>
<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="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:rgb(204,204,204) 1px solid"><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 style="BACKGROUND-COLOR:rgb(255,255,255)" color="#000000" face="arial, helvetica, sans-serif"><span style="BORDER-TOP:0px;BORDER-RIGHT:0px;BORDER-BOTTOM:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;BORDER-LEFT:0px;PADDING-RIGHT:0px">chmod
</span><span style="BORDER-TOP:0px;BORDER-RIGHT:0px;BORDER-BOTTOM:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;BORDER-LEFT:0px;PADDING-RIGHT:0px">+</span><span style="BORDER-TOP:0px;BORDER-RIGHT:0px;BORDER-BOTTOM:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;BORDER-LEFT:0px;PADDING-RIGHT: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="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
<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>
<div> </div></div></div>
</div></div><p>
</p><hr><span>
_______________________________________________<br>Users mailing
list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></span><p></p></div></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Aron Podrigal<div>-</div><div>'1000001', '1110010', '1101111', '1101110' '1010000', '1101111', '1100100', '1110010', '1101001', '1100111', '1100001', '1101100'</div><div><br></div><div>P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39'<br></div><div><br></div></div></div></div></div>
</div>