[DRBD-cvs] svn commit by lars - r2340 - branches/drbd-0.7/scripts - on drbddisk stop, 'fail' silently with exit code 0 if d

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Tue Aug 8 13:57:51 CEST 2006


Author: lars
Date: 2006-08-08 13:57:50 +0200 (Tue, 08 Aug 2006)
New Revision: 2340

Modified:
   branches/drbd-0.7/scripts/drbddisk
Log:
on drbddisk stop, 'fail' silently with exit code 0 if drbd is not present

Modified: branches/drbd-0.7/scripts/drbddisk
===================================================================
--- branches/drbd-0.7/scripts/drbddisk	2006-08-08 11:06:42 UTC (rev 2339)
+++ branches/drbd-0.7/scripts/drbddisk	2006-08-08 11:57:50 UTC (rev 2340)
@@ -34,7 +34,7 @@
 	;;
     stop)
 	# exec, so the exit code of drbdadm propagates
-	exec $DRBDADM secondary $RES
+	! test -e /proc/drbd || exec $DRBDADM secondary $RES
 	;;
     status)
 	if [ "$RES" = "all" ]; then



More information about the drbd-cvs mailing list