[DRBD-cvs] scripts by lars; adding the panic patch, which was floati...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Wed, 28 Apr 2004 09:57:20 +0200 (CEST)
DRBD CVS committal
Author : lars
Project : drbd
Module : scripts
Dir : drbd/scripts
Modified Files:
drbd
Log Message:
adding the panic patch, which was floating around since ages :)
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/scripts/drbd,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -3 -r1.56 -r1.57
--- drbd 6 Apr 2004 18:52:04 -0000 1.56
+++ drbd 28 Apr 2004 07:57:15 -0000 1.57
@@ -62,7 +62,7 @@
#
# shouldn't there be more descriptive comments? ;)
#
-CVSID='$Id: drbd,v 1.56 2004/04/06 18:52:04 lars Exp $'
+CVSID='$Id: drbd,v 1.57 2004/04/28 07:57:15 lars Exp $'
CONTACT='Lars Ellenberg <l.g.e@web.de>, drbd-user@lists.linbit.com'
##################################################}}}1
@@ -2084,6 +2084,9 @@
if mymatch "$COMMAND" "@(start|stop|restart|reconnect)" ; then
needs_to_be_root
fi
+
+test "$link" = drbd -a "$COMMAND" = stop -a ! -e "$PROC_DRBD" &&
+ echo "$link stop: nothing to do" && exit 0
#
# read pre-parsed config, or if this seems inconsistent,