summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-02-09 17:55:33 -0500
committerRichard Kreuter <richard@10gen.com>2010-02-09 17:55:33 -0500
commit61c9af96fef1e239d157c880cc4554c557e5c736 (patch)
treef5651d20539056ec7354e34e5b4f4df31e85dbbd
parentafa21134b2eeec1b09cd247f8f4b4172ad7942d5 (diff)
downloadmongo-61c9af96fef1e239d157c880cc4554c557e5c736.tar.gz
Use mongodb.conf in the Debianoid SysV init script, too MINOR
-rw-r--r--debian/init.d10
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/init.d b/debian/init.d
index f9ed0ed7962..bfa9c39609e 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -21,8 +21,8 @@
#
### BEGIN INIT INFO
# Provides: mongodb
-# Required-Start: $network $local_fs
-# Required-Stop:
+# Required-Start: $network $local_fs $remote_fs
+# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $named
# Should-Stop:
# Default-Start: 2 3 4 5
@@ -50,9 +50,9 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/mongod
DESC=database
-# Default defaults. Can be overridden by the /etc/default/$NAME,
-# below.
+# Default defaults. Can be overridden by the /etc/default/$NAME
NAME=mongodb
+CONF=/etc/mongodb.conf
DATA=/var/lib/mongodb
LOGDIR=/var/log/mongodb
PIDFILE=/var/run/$NAME.pid
@@ -74,6 +74,7 @@ fi
. /lib/lsb/init-functions
+STARTTIME=1
DIETIME=10 # Time to wait for the server to die, in seconds
# If this value is set too low you might not
# let some servers to die gracefully and
@@ -81,6 +82,7 @@ DIETIME=10 # Time to wait for the server to die, in seconds
DAEMONUSER=${DAEMONUSER:-mongodb}
DAEMON_OPTS=${DAEMON_OPTS:-"--dbpath $DATA --logpath $LOGFILE run"}
+DAEMON_OPTS="$DAEMON_OPTS --config $CONF"
set -e