You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/debian/ngcp-kamailio.kamailio-lb.s...

32 lines
950 B

[Unit]
Description=Kamailio (OpenSER) - the Open Source SIP Server, LB
After=network-online.target
After=remote-fs.target
After=time-sync.target
Requires=network-online.target
Requires=time-sync.target
Wants=remote-fs.target
[Service]
Type=notify
User=kamailio
Group=kamailio
PIDFile=/run/kamailio/kamailio.lb.pid
RuntimeDirectory=kamailio
RuntimeDirectoryMode=0750
RuntimeDirectoryPreserve=yes
Environment='CFGFILE=/etc/kamailio/lb/kamailio.cfg'
# Values of SHM_MEMORY=64 and PKG_MEMORY=16 taken from old sysvinit file
# Amount of shared memory to allocate for the running Kamailio server (in MiB)
Environment='SHM_MEMORY=64'
# Amount of private memory for each Kamailio process (in MiB)
Environment='PKG_MEMORY=16'
# -DD means to not daemonise
ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.lb.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -DD
Restart=on-abort
LimitMEMLOCK=infinity
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target