TT#61954 Add RuntimeDirectory directives for systemd service files

The daemon requires these directories to be present, and will otherwise
refuse to start.

Change-Id: I90ebd15dc465200cdace531ed7bf2fe5aa845eed
changes/51/31951/1
Guillem Jover 7 years ago
parent b355100980
commit c14de9139d

@ -14,6 +14,9 @@ Type=simple
User=kamailio
Group=kamailio
PIDFile=/run/kamailio/kamailio.lb.pid
RuntimeDirectory=kamailio
RuntimeDirectoryMode=0750
RuntimeDirectoryPreserve=yes
Environment='LD_PRELOAD=/usr/lib/x86_64-linux-gnu/kamailio/openssl_mutex_shared/openssl_mutex_shared.so'
Environment='CFGFILE=/etc/kamailio/lb/kamailio.cfg'
# Values of SHM_MEMORY=64 and PKG_MEMORY=16 taken from old sysvinit file

@ -13,6 +13,9 @@ Requires=mariadb.service
Type=simple
User=kamailio
Group=kamailio
RuntimeDirectory=kamailio
RuntimeDirectoryMode=0750
RuntimeDirectoryPreserve=yes
PIDFile=/run/kamailio/kamailio.proxy.pid
Environment='CFGFILE=/etc/kamailio/proxy/kamailio.cfg'
# Values of SHM_MEMORY=125 and PKG_MEMORY=32 taken from old sysvinit file

Loading…
Cancel
Save