forked from pool/sanlock
- Add lvb feature - Various bug fixes and improvements - Drop upstream patch 0001-fix-systemd-service-files.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=19
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
Index: sanlock-3.0.1/init.d/sanlock.service
|
|
===================================================================
|
|
--- sanlock-3.0.1.orig/init.d/sanlock.service
|
|
+++ sanlock-3.0.1/init.d/sanlock.service
|
|
@@ -6,8 +6,10 @@ Wants=wdmd.service
|
|
[Service]
|
|
Type=forking
|
|
ControlGroup=cpu:/
|
|
-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.0.1/init.d/wdmd.service
|
|
===================================================================
|
|
--- sanlock-3.0.1.orig/init.d/wdmd.service
|
|
+++ sanlock-3.0.1/init.d/wdmd.service
|
|
@@ -5,8 +5,10 @@ After=syslog.target
|
|
[Service]
|
|
Type=forking
|
|
ControlGroup=cpu:/
|
|
-ExecStart=/lib/systemd/systemd-wdmd start
|
|
-ExecStop=/lib/systemd/systemd-wdmd stop
|
|
+EnvironmentFile=-/etc/sysconfig/wdmd
|
|
+ExecStart=/usr/sbin/wdmd $WDMDOPTS
|
|
+ExecStop=/bin/kill -TERM $MAINPID
|
|
+ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|