SHA256
1
0
forked from pool/sanlock
sanlock/suse-systemd.patch
James Fehlig 85b7dd53be - Add support for systemd
- Add /etc/sysconfig/sanlock configuration file

OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=3
2012-01-20 00:08:24 +00:00

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