forked from pool/sanlock
- Make the watchdog timeout configurable - wdmd: close watchdog when not used - userstorage: replace by PyPI userstorage - sanlock: skip short delay in delta lease reacquire - sanlock: use product_uuid for host name - wdmd: fix timing for iTCO_wdt - sanlock: save client_id in token and report in status and use in -C - sanlock: include startup message in syslog - sanlock: improve repeated ballots in paxos_acquire - sanlock: fix zero io timeout for direct requests - sanlock: fix release writing zero dblock values - sanlock: skip delay when same host acquires delta lease OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=74
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
Index: sanlock-3.9.3/init.d/sanlock.service
|
|
===================================================================
|
|
--- sanlock-3.9.3.orig/init.d/sanlock.service
|
|
+++ sanlock-3.9.3/init.d/sanlock.service
|
|
@@ -5,8 +5,10 @@ Wants=wdmd.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
-ExecStart=/lib/systemd/systemd-sanlock start
|
|
-ExecStop=/lib/systemd/systemd-sanlock stop
|
|
+EnvironmentFile=-/etc/sysconfig/sanlock
|
|
+ExecStart=/usr/sbin/sanlock daemon $SANLOCKOPTS
|
|
+ExecStop=/bin/kill -TERM $MAINPID
|
|
+ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Index: sanlock-3.9.3/init.d/wdmd.service
|
|
===================================================================
|
|
--- sanlock-3.9.3.orig/init.d/wdmd.service
|
|
+++ sanlock-3.9.3/init.d/wdmd.service
|
|
@@ -6,7 +6,10 @@ After=syslog.target
|
|
Type=forking
|
|
ExecStartPre=/lib/systemd/systemd-wdmd watchdog-check
|
|
ExecStart=/usr/sbin/wdmd
|
|
-SendSIGKILL=no
|
|
+EnvironmentFile=-/etc/sysconfig/wdmd
|
|
+ExecStart=/usr/sbin/wdmd $WDMDOPTS
|
|
+ExecStop=/bin/kill -TERM $MAINPID
|
|
+ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Index: sanlock-3.9.3/init.d/fence_sanlockd.service
|
|
===================================================================
|
|
--- sanlock-3.9.3.orig/init.d/fence_sanlockd.service
|
|
+++ sanlock-3.9.3/init.d/fence_sanlockd.service
|
|
@@ -5,8 +5,8 @@ Before=corosync.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
-ExecStart=/lib/systemd/systemd-fence_sanlockd start
|
|
-ExecStop=/lib/systemd/systemd-fence_sanlockd stop
|
|
+ExecStart=/usr/lib/systemd/systemd-fence_sanlockd start
|
|
+ExecStop=/usr/lib/systemd/systemd-fence_sanlockd stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|