Module: kamailio
Branch: 4.4
Commit: d447aca24fef404f0ad5449542c3da615498cb2c
URL:
https://github.com/kamailio/kamailio/commit/d447aca24fef404f0ad5449542c3da6…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-01T10:56:29+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/d447aca24fef404f0ad5449542c3da6…
Patch:
https://github.com/kamailio/kamailio/commit/d447aca24fef404f0ad5449542c3da6…
---
diff --git a/pkg/kamailio/centos/7/kamailio.service
b/pkg/kamailio/centos/7/kamailio.service
index 5e4e67a660..9de06c43b0 100644
--- a/pkg/kamailio/centos/7/kamailio.service
+++ b/pkg/kamailio/centos/7/kamailio.service
@@ -14,7 +14,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 /var/run/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 a8d59b0c0c..2f4ac95df5 100644
--- a/pkg/kamailio/fedora/17/kamailio.service
+++ b/pkg/kamailio/fedora/17/kamailio.service
@@ -8,7 +8,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