2017-02-16 08:27:47 +01:00
|
|
|
diff -Naur drbd-utils-8.9.9.orig/scripts/drbd drbd-utils-8.9.9/scripts/drbd
|
|
|
|
--- drbd-utils-8.9.9.orig/scripts/drbd 2016-10-24 17:37:12.893292307 +0800
|
|
|
|
+++ drbd-utils-8.9.9/scripts/drbd 2016-10-24 17:38:56.728938286 +0800
|
2014-07-14 17:04:17 +02:00
|
|
|
@@ -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
|
2017-02-16 08:27:47 +01:00
|
|
|
# Default-Start:
|
2014-07-14 17:04:17 +02:00
|
|
|
# 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
|
2017-02-16 08:27:47 +01:00
|
|
|
# Short-Description: Control DRBD resources.
|
|
|
|
# Description: Control all DRBD resources.
|
|
|
|
@@ -184,7 +184,6 @@
|
2014-07-14 17:04:17 +02:00
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
- [ -d /var/lock/subsys ] && touch /var/lock/subsys/drbd # for RedHat
|
2014-11-04 15:03:28 +01:00
|
|
|
run_hook start_before-wait
|
2014-07-14 17:04:17 +02:00
|
|
|
$DRBDADM wait-con-int # User interruptible version of wait-connect all
|
2014-11-04 15:03:28 +01:00
|
|
|
run_hook start
|
2017-02-16 08:27:47 +01:00
|
|
|
@@ -256,7 +255,6 @@
|
2014-07-14 17:04:17 +02:00
|
|
|
fi
|
|
|
|
done
|
2014-11-04 15:03:28 +01:00
|
|
|
run_hook stop
|
2014-07-14 17:04:17 +02:00
|
|
|
- [ -f /var/lock/subsys/drbd ] && rm /var/lock/subsys/drbd
|
|
|
|
log_end_msg 0
|
|
|
|
;;
|
|
|
|
status)
|