/lib/systemd/system/kamailio-homer.service is in homer-api 5.0.6+dfsg2-3.
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 22 23 | [Unit]
Description=Kamailio HOMER
After=network.target
[Service]
Type=forking
Environment='CFGFILE=/etc/homer/kamailio-homer.cfg'
Environment='SHM_MEMORY=64'
Environment='PKG_MEMORY=8'
Environment='USER=kamailio-homer'
Environment='GROUP=kamailio-homer'
EnvironmentFile=-/etc/default/homer
EnvironmentFile=-/etc/default/homer.d/*
RuntimeDirectory=kamailio-homer
RuntimeDirectoryMode=0750
# PIDFile requires a full absolute path
PIDFile=/var/run/kamailio-homer/kamailio-homer.pid
# ExecStart requires a full absolute path
ExecStart=/usr/sbin/kamailio -P /var/run/kamailio-homer/kamailio-homer.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
Restart=on-abort
[Install]
WantedBy=multi-user.target
|