File: homer-api.kamailio-homer.service

package info (click to toggle)
homer-api 5.0.6+dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,604 kB
  • ctags: 2,439
  • sloc: php: 8,259; sql: 1,212; perl: 984; sh: 318; makefile: 69
file content (23 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (2)
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