dlm/fix_systemd_service.patch

25 lines
667 B
Diff
Raw Normal View History

commit 1ea3f422e7add8730e07029fc9f30aa38ddded2f
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date: Fri Feb 3 16:40:30 2012 +0100
systemd: modprobe dlm on start
also add commented out modprobe removal on stop
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
diff --git a/init/dlm.service b/init/dlm.service
index e275843..17579c2 100644
--- a/init/dlm.service
+++ b/init/dlm.service
@@ -4,7 +4,9 @@ After=syslog.target network.target corosync.service
[Service]
Type=forking
+ExecStartPre=/sbin/modprobe dlm
ExecStart=/usr/sbin/dlm_controld $OPTIONS
+#ExecStopPost=/sbin/modprobe -r dlm
[Install]
WantedBy=multi-user.target