summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-02-09 17:56:05 -0500
committerRichard Kreuter <richard@10gen.com>2010-02-09 17:56:05 -0500
commitb122797eb2ab63fa79e875f754f2101e9262b22e (patch)
tree079cf33dfe204ac96ac555d9da703f11de596c90
parent1116c759be379bc62a30200a97d3ffc94b79253b (diff)
parent61c9af96fef1e239d157c880cc4554c557e5c736 (diff)
downloadmongo-b122797eb2ab63fa79e875f754f2101e9262b22e.tar.gz
Merge branch 'dotdeb'
-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