packages: mongodb/mongodb.init - add missing network check block
glen
glen at pld-linux.org
Mon Apr 23 09:08:40 CEST 2012
Author: glen Date: Mon Apr 23 07:08:40 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- add missing network check block
---- Files affected:
packages/mongodb:
mongodb.init (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/mongodb/mongodb.init
diff -u packages/mongodb/mongodb.init:1.4 packages/mongodb/mongodb.init:1.5
--- packages/mongodb/mongodb.init:1.4 Mon Apr 23 09:07:49 2012
+++ packages/mongodb/mongodb.init Mon Apr 23 09:08:35 2012
@@ -27,6 +27,16 @@
# Get network config
. /etc/sysconfig/network
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+ if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+ msg_network_down "mongod"
+ exit 1
+ fi
+else
+ exit 0
+fi
+
MONGOD_BIN="/usr/bin/mongod"
MONGOD_LOGFILE="/var/log/mongo/mongod.log"
MONGOD_PIDFILE="/var/run/mongod.pid"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/mongodb/mongodb.init?r1=1.4&r2=1.5
More information about the pld-cvs-commit
mailing list