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 '-/etc/sysconfig/opensips' like in the fedora package.
I am posting my working service file below for CentOS and I hope this gets included in the future releases of OpenSIPS. [Unit] > Description=OpenSIPS is a very fast and flexible SIP (RFC3261) server > After=network.target mariadb.service > [Service] > Type=forking > User=root > Group=root > EnvironmentFile=-/etc/default/opensips > PIDFile=/var/run/opensips.pid > ExecStart=/usr/local/sbin/opensips -P /var/run/opensips.pid -f > /usr/local/etc/opensips/opensips.cfg $OPTIONS > ExecStartPre=/usr/local/sbin/opensips -c -f > /usr/local/etc/opensips/opensips.cfg > Restart=always > TimeoutStopSec=30s > [Install] > WantedBy=multi-user.target
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
