sanlock/suse-systemd.patch
James Fehlig 60c3e5e0b3 - Update to sanlock 2.1
- python: release leases for other processes
  - python: add shared resource parameter to acquire
  - add a logrotate file
  - status for all shared tokens
  - retry transient sh failures
  - fix inquire state string

OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=13
2012-03-13 18:08:11 +00:00

32 lines
960 B
Diff

Index: sanlock-2.1/init.d/sanlock.service
===================================================================
--- sanlock-2.1.orig/init.d/sanlock.service
+++ sanlock-2.1/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-2.1/init.d/wdmd.service
===================================================================
--- sanlock-2.1.orig/init.d/wdmd.service
+++ sanlock-2.1/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