drbd-utils/init-script-fixes.diff

41 lines
1.2 KiB
Diff

Index: drbd-utils-8.9.1/scripts/drbd
===================================================================
--- drbd-utils-8.9.1.orig/scripts/drbd
+++ drbd-utils-8.9.1/scripts/drbd
@@ -9,14 +9,14 @@
#
### BEGIN INIT INFO
# Provides: drbd
-# Required-Start: $local_fs $network $syslog
-# Required-Stop: $local_fs $network $syslog
+# Required-Start: $remote_fs $network $syslog
+# Required-Stop: $remote_fs $network $syslog
# Should-Start: sshd multipathd
# Should-Stop: sshd multipathd
-# Default-Start: 2 3 4 5
+# Default-Start: 2 3 5
# Default-Stop: 0 1 6
-# X-Start-Before: heartbeat corosync
-# X-Stop-After: heartbeat corosync
+# X-Start-Before: pacemaker corosync
+# X-Stop-After: pacemaker corosync
# X-Interactive: true
# Short-Description: Control drbd resources.
### END INIT INFO
@@ -170,7 +170,6 @@ case "$1" in
done
done
- [ -d /var/lock/subsys ] && touch /var/lock/subsys/drbd # for RedHat
run_hook start_before-wait
$DRBDADM wait-con-int # User interruptible version of wait-connect all
run_hook start
@@ -209,7 +208,6 @@ case "$1" in
fi
done
run_hook stop
- [ -f /var/lock/subsys/drbd ] && rm /var/lock/subsys/drbd
log_end_msg 0
;;
status)