Module: kamailio
Branch: master
Commit: af6c1f709ad4343539a4e47c84ff94c2f237eb16
URL: 
https://github.com/kamailio/kamailio/commit/af6c1f709ad4343539a4e47c84ff94c2f237eb16

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2018-03-02T13:29:15+01:00

pkg/kamailio/deb: kamailio.service fix for /run in tmpfs

See #1464

---

Modified: pkg/kamailio/deb/buster/kamailio.service
Modified: pkg/kamailio/deb/debian/kamailio.service
Modified: pkg/kamailio/deb/jessie/kamailio.service
Modified: pkg/kamailio/deb/sid/kamailio.service
Modified: pkg/kamailio/deb/stretch/kamailio.service
Modified: pkg/kamailio/deb/xenial/kamailio.service

---

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

---

diff --git a/pkg/kamailio/deb/buster/kamailio.service 
b/pkg/kamailio/deb/buster/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/buster/kamailio.service
+++ b/pkg/kamailio/deb/buster/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pkg/kamailio/deb/debian/kamailio.service 
b/pkg/kamailio/deb/debian/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/debian/kamailio.service
+++ b/pkg/kamailio/deb/debian/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pkg/kamailio/deb/jessie/kamailio.service 
b/pkg/kamailio/deb/jessie/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/jessie/kamailio.service
+++ b/pkg/kamailio/deb/jessie/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pkg/kamailio/deb/sid/kamailio.service 
b/pkg/kamailio/deb/sid/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/sid/kamailio.service
+++ b/pkg/kamailio/deb/sid/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pkg/kamailio/deb/stretch/kamailio.service 
b/pkg/kamailio/deb/stretch/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/stretch/kamailio.service
+++ b/pkg/kamailio/deb/stretch/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target
diff --git a/pkg/kamailio/deb/xenial/kamailio.service 
b/pkg/kamailio/deb/xenial/kamailio.service
index 06c3334bd7..e7a9e18484 100644
--- a/pkg/kamailio/deb/xenial/kamailio.service
+++ b/pkg/kamailio/deb/xenial/kamailio.service
@@ -16,6 +16,9 @@ PIDFile=/var/run/kamailio/kamailio.pid
 # ExecStart requires a full absolute path
 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m 
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
 Restart=on-abort
+# /var/run/kamailio in tmpfs
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0750
 
 [Install]
 WantedBy=multi-user.target


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to