summaryrefslogtreecommitdiff
path: root/pcr/kamailio/kamailio.service
blob: e3449dde6a2bec3d2da86b23c85f3f346218e87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Kamailio - the Open Source SIP Server
Documentation=man:kamailio(8) https://www.kamailio.org/
Wants=network-online.target
After=syslog.target network-online.target

[Service]
Type=forking
EnvironmentFile=/etc/kamailio
PIDFile=/var/run/kamailio.pid
ExecStart=/usr/bin/kamailio -P /var/run/kamailio.pid
# /var/run/kamailio in tmpfs
RuntimeDirectory=kamailio
RuntimeDirectoryMode=0750
Restart=on-failure

[Install]
WantedBy=multi-user.target