Module: kamailio
Branch: master
Commit: af30ab2dcd6d67bc86f9ce86be0abf9014cbfd8d
URL:
https://github.com/kamailio/kamailio/commit/af30ab2dcd6d67bc86f9ce86be0abf9…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-01T10:55:25+02:00
pkg/kamailio: Added systemd unit relanch after non null exit code. Fix of ticket 1085
---
Modified: pkg/kamailio/centos/7/kamailio.service
Modified: pkg/kamailio/fedora/17/kamailio.service
---
Diff:
https://github.com/kamailio/kamailio/commit/af30ab2dcd6d67bc86f9ce86be0abf9…
Patch:
https://github.com/kamailio/kamailio/commit/af30ab2dcd6d67bc86f9ce86be0abf9…
---
diff --git a/pkg/kamailio/centos/7/kamailio.service
b/pkg/kamailio/centos/7/kamailio.service
index bde8608137..1117e41608 100644
--- a/pkg/kamailio/centos/7/kamailio.service
+++ b/pkg/kamailio/centos/7/kamailio.service
@@ -16,7 +16,7 @@ PIDFile=/run/kamailio/kamailio.pid
# ExecStart requires a full absolute path
ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M
$PKG_MEMORY
ExecStopPost=/usr/bin/rm -f /run/kamailio/kamailio.pid
-Restart=on-abort
+Restart=on-failure
User=kamailio
Group=daemon
; For each TCP or TLS endpoint connection is requred file descriptor
diff --git a/pkg/kamailio/fedora/17/kamailio.service
b/pkg/kamailio/fedora/17/kamailio.service
index 4b2039b818..61457e5fd6 100644
--- a/pkg/kamailio/fedora/17/kamailio.service
+++ b/pkg/kamailio/fedora/17/kamailio.service
@@ -10,7 +10,7 @@ EnvironmentFile=/etc/sysconfig/kamailio
PIDFile=/var/run/kamailio.pid
ExecStart=/usr/sbin/kamailio -P /var/run/kamailio.pid $OPTIONS
ExecStopPost=/usr/bin/rm -f /var/run/kamailio.pid
-Restart=on-abort
+Restart=on-failure
[Install]
WantedBy=multi-user.target