1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Sun, 27 Sep 2015 19:04:33 +0200
Subject: Make systemd stop and restart corosync-notifyd if corosync is
restarted
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Otherwise is exits successfully (which should be fixed eventually), thus
it does not even get restarted by systemd.
Signed-off-by: Ferenc Wágner <wferi@niif.hu>
---
init/corosync-notifyd.service.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/init/corosync-notifyd.service.in b/init/corosync-notifyd.service.in
index 1edcee4..63e1a33 100644
--- a/init/corosync-notifyd.service.in
+++ b/init/corosync-notifyd.service.in
@@ -1,14 +1,14 @@
[Unit]
Description=Corosync Dbus and snmp notifier
Documentation=man:corosync-notifyd
-Wants=corosync.service
+Requires=corosync.service
After=corosync.service
[Service]
EnvironmentFile=-@CONFIGDIR@/corosync-notifyd
ExecStart=@sbindir_expanded@/corosync-notifyd -f $OPTIONS
Type=simple
-Restart=on-failure
+Restart=always
[Install]
WantedBy=multi-user.target
|