[sr-dev] git:5.1:4ad04d61: pkg/kamailio/obs: set correct group name for systemd unit files [skip ci]

Sergey Safarov s.safarov at gmail.com
Fri Sep 27 12:35:53 CEST 2019


Module: kamailio
Branch: 5.1
Commit: 4ad04d611262d331334bcfd130a071828114ce04
URL: https://github.com/kamailio/kamailio/commit/4ad04d611262d331334bcfd130a071828114ce04

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2019-09-27T13:35:37+03:00

pkg/kamailio/obs: set correct group name for systemd unit files [skip ci]

(cherry picked from commit e9671df3f458ad40d913bd2ce0792340a5df5948)

---

Modified: pkg/kamailio/obs/sipcapture.service
Modified: pkg/kamailio/obs/sipcapture.tmpfiles

---

Diff:  https://github.com/kamailio/kamailio/commit/4ad04d611262d331334bcfd130a071828114ce04.diff
Patch: https://github.com/kamailio/kamailio/commit/4ad04d611262d331334bcfd130a071828114ce04.patch

---

diff --git a/pkg/kamailio/obs/sipcapture.service b/pkg/kamailio/obs/sipcapture.service
index b6f18cb3ae..6395216308 100644
--- a/pkg/kamailio/obs/sipcapture.service
+++ b/pkg/kamailio/obs/sipcapture.service
@@ -8,6 +8,8 @@ After=mysqld.service
 
 [Service]
 Type=simple
+User=kamailio
+Group=kamailio
 WorkingDirectory=/run/sipcapture
 Environment='CFGFILE=/etc/kamailio/kamailio-sipcapture.cfg'
 Environment='SHM_MEMORY=32'
@@ -18,8 +20,6 @@ PIDFile=/run/sipcapture/sipcapture.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -DD -P /run/sipcapture/sipcapture.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY
 Restart=on-failure
-User=kamailio
-Group=daemon
 
 
 [Install]
diff --git a/pkg/kamailio/obs/sipcapture.tmpfiles b/pkg/kamailio/obs/sipcapture.tmpfiles
index 17567963a8..12a5da7526 100644
--- a/pkg/kamailio/obs/sipcapture.tmpfiles
+++ b/pkg/kamailio/obs/sipcapture.tmpfiles
@@ -1 +1 @@
-D /run/sipcapture 0700 kamailio daemon -
+D /run/sipcapture 0700 kamailio kamailio -




More information about the sr-dev mailing list