aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drbd/drbd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/drbd/drbd.initd')
-rw-r--r--testing/drbd/drbd.initd12
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/drbd/drbd.initd b/testing/drbd/drbd.initd
index 48f9e19fee..d5ce7d8e32 100644
--- a/testing/drbd/drbd.initd
+++ b/testing/drbd/drbd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.7 2011/12/04 13:07:20 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.8 2013/01/17 19:09:04 robbat2 Exp $
extra_started_commands="reload"
@@ -117,12 +117,12 @@ stop() {
if ! grep -q '^/dev/drbd' /proc/mounts &>/dev/null; then
if [ -e ${PROC_DRBD} ]; then
${DRBDADM} down all
+ ret=$?
sleep 3
- if grep -q '^drbd' /proc/modules ; then
- ${RMMOD} drbd
- fi
+ if [ -e /proc/modules ] && grep -q '^drbd' /proc/modules ; then
+ ${RMMOD} drbd
+ fi
fi
- ret=$?
eend $ret
return $ret
else