drbd/init-script-fixes.diff

32 lines
896 B
Diff

Index: scripts/drbd
===================================================================
--- scripts/drbd.orig
+++ scripts/drbd
@@ -9,8 +9,8 @@
#
### 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
@@ -184,7 +184,6 @@ case "$1" in
done
done
- [ -d /var/lock/subsys ] && touch /var/lock/subsys/drbd # for RedHat
$DRBDADM wait-con-int # User interruptible version of wait-connect all
$DRBDADM sh-b-pri all # Become primary if configured
@@ -211,7 +210,6 @@ case "$1" in
_udev_settle &> /dev/null
$RMMOD drbd
fi
- [ -f /var/lock/subsys/drbd ] && rm /var/lock/subsys/drbd
log_end_msg 0
;;
status)