File init-script-fixes.diff of Package drbd.1187

Index: scripts/drbd
===================================================================
--- scripts/drbd.orig
+++ 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
@@ -159,7 +159,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
@@ -191,7 +190,6 @@ case "$1" in
 		$RMMOD drbd && break
 	    fi
 	done
-	[ -f /var/lock/subsys/drbd ] && rm /var/lock/subsys/drbd
 	log_end_msg 0
 	;;
     status)
openSUSE Build Service is sponsored by