sanlock/suse-systemd.patch
James Fehlig 7699c03a36 Accepting request 481647 from home:ZRen:branches:Virtualization
- Update to sanlock 3.4.0
- Enable fence_sanlockd so that lvm2 can use the new lvmlocked
  feature in cluster environment
  * fix unpackaged file - /usr/sbin/rcfence_sanlockd
  * refresh suse-no-date-time.patch to cover the same issue
  in fence_sanlockd
  * adjust fence_sanlockd.init and suse-systemd.patch
- Enable sanlk-reset subpackage 
- Fix "undefined symbol to io_suspend" at runtime, bsc#1030060
  suse-fix-link-errors.patch

OBS-URL: https://build.opensuse.org/request/show/481647
OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=28
2017-03-21 21:32:03 +00:00

50 lines
1.6 KiB
Diff

Index: sanlock-3.4.0/init.d/sanlock.service
===================================================================
--- sanlock-3.4.0.orig/init.d/sanlock.service
+++ sanlock-3.4.0/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.4.0/init.d/wdmd.service
===================================================================
--- sanlock-3.4.0.orig/init.d/wdmd.service
+++ sanlock-3.4.0/init.d/wdmd.service
@@ -4,8 +4,10 @@ After=syslog.target
[Service]
Type=forking
-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
Index: sanlock-3.4.0/init.d/fence_sanlockd.service
===================================================================
--- sanlock-3.4.0.orig/init.d/fence_sanlockd.service
+++ sanlock-3.4.0/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