dlm/fix_systemd_service.patch
Fabio M. Di Nitto 28ba0732b2 fix systemd start operation
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2012-02-03 16:42:50 +01:00

25 lines
667 B
Diff

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