init.d/sanlock.service.native | 13 +++++++++++++
init.d/wdmd | 3 +++
init.d/wdmd.service.native | 13 +++++++++++++
3 files changed, 29 insertions(+)
New commits:
commit 5f367220ae7a2599bc9ec69ea5f33307b963e47c
Author: Antoni S. Puimedon <asegurap(a)redhat.com>
Date: Wed Apr 2 15:01:48 2014 -0500
systemd: prevent sigkill from being sent
This patch reduces the usage of sysV init scripts by the systemd
service files and introduces the usage of SendSIGKILL=no to
prevent ungraceful killing.
diff --git a/init.d/sanlock.service.native b/init.d/sanlock.service.native
new file mode 100644
index 0000000..b915e92
--- /dev/null
+++ b/init.d/sanlock.service.native
@@ -0,0 +1,13 @@
+[Unit]
+Description=Shared Storage Lease Manager
+After=syslog.target
+Wants=wdmd.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/sanlock daemon -U sanlock -G sanlock
+SendSIGKILL=no
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/init.d/wdmd b/init.d/wdmd
index 6ca9279..565342d 100644
--- a/init.d/wdmd
+++ b/init.d/wdmd
@@ -135,6 +135,9 @@ case "$1" in
rh_status_q || exit 7
$1
;;
+ watchdog-check)
+ watchdog_check
+ ;;
force-reload)
force_reload
;;
diff --git a/init.d/wdmd.service.native b/init.d/wdmd.service.native
new file mode 100644
index 0000000..6596b07
--- /dev/null
+++ b/init.d/wdmd.service.native
@@ -0,0 +1,13 @@
+[Unit]
+Description=Watchdog Multiplexing Daemon
+After=syslog.target
+
+[Service]
+Type=forking
+ExecStartPre=/lib/systemd/systemd-wdmd watchdog-check
+ExecStart=/usr/sbin/wdmd -G sanlock
+SendSIGKILL=no
+
+[Install]
+WantedBy=multi-user.target
+
Show replies by date