forked from pool/sanlock
32 lines
960 B
Diff
32 lines
960 B
Diff
|
Index: sanlock-1.9/init.d/sanlock.service
|
||
|
===================================================================
|
||
|
--- sanlock-1.9.orig/init.d/sanlock.service
|
||
|
+++ sanlock-1.9/init.d/sanlock.service
|
||
|
@@ -3,8 +3,9 @@ After=syslog.target 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
|
||
|
+ExecReload=/bin/kill -HUP $MAINPID
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
Index: sanlock-1.9/init.d/wdmd.service
|
||
|
===================================================================
|
||
|
--- sanlock-1.9.orig/init.d/wdmd.service
|
||
|
+++ sanlock-1.9/init.d/wdmd.service
|
||
|
@@ -3,8 +3,8 @@ After=syslog.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
-ExecStart=/lib/systemd/systemd-wdmd start
|
||
|
-ExecStop=/lib/systemd/systemd-wdmd stop
|
||
|
+ExecStart=/usr/sbin/wdmd
|
||
|
+ExecReload=/bin/kill -HUP $MAINPID
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|