/lib/systemd/system/opensips.service is in opensips 2.2.2-3build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [Unit]
Description=OpenSIPS SIP Server
After=network.target mysqld.service postgresql.service rtpproxy.service
Documentation=man:opensips
[Service]
Type=forking
User=opensips
Group=opensips
RuntimeDirectory=opensips
RuntimeDirectoryMode=775
Environment=P_MEMORY=32 S_MEMORY=32
EnvironmentFile=-/etc/default/opensips
PIDFile=%t/opensips/opensips.pid
ExecStart=/usr/sbin/opensips -P %t/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m $S_MEMORY -M $P_MEMORY $OPTIONS
ExecStartPre=/usr/sbin/opensips -c -f /etc/opensips/opensips.cfg
Restart=always
TimeoutStopSec=30s
[Install]
WantedBy=multi-user.target
|