<div dir="ltr"><font face="arial, helvetica, sans-serif">Thanks to a suggestion from Aron, I have now solved this problem.  The file causing the permission error requires the &#39;/usr/local&#39; prefix in its filepath, which the service file doesn&#39;t have.  The PID filepath is also incorrect and the <span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre">EnvironmentFile value should be &#39;-/etc/default/opensips&#39;, not &#39;</span><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre">-/etc/sysconfig/opensips&#39; like in the fedora package.</span></font><div><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre">I am posting my working service </span><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre">file below </span><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre">for CentOS and I hope this gets included in the future releases of OpenSIPS.</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(51,51,51);line-height:16.8px;white-space:pre"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><blockquote 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" class="gmail_quote"><font color="#333333"><span style="line-height:16.8px;white-space:pre">[Unit]<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">Description=OpenSIPS is a very fast and flexible SIP (RFC3261) server<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">After=network.target mariadb.service</span></font> </blockquote><blockquote 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" class="gmail_quote"><font color="#333333"><span style="line-height:16.8px;white-space:pre"><br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">[Service]<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">Type=forking<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">User=root<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">Group=root<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">EnvironmentFile=-/etc/default/opensips<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">PIDFile=/var/run/opensips.pid<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">ExecStart=/usr/local/sbin/opensips -P /var/run/opensips.pid -f /usr/local/etc/opensips/opensips.cfg $OPTIONS<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">ExecStartPre=/usr/local/sbin/opensips -c -f /usr/local/etc/opensips/opensips.cfg<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">Restart=always<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">TimeoutStopSec=30s</span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre"><br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">[Install]<br></span></font><font color="#333333"><span style="line-height:16.8px;white-space:pre">WantedBy=multi-user.target</span></font></blockquote></font></div><div><br></div></div>