summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMike Fiedler <miketheman@gmail.com>2012-08-02 13:52:47 -0400
committerMike Fiedler <miketheman@gmail.com>2012-08-02 13:52:47 -0400
commit9dca13232a0578e30311f2f27bd150d83bb0b00d (patch)
treeb2c11cc69faeefbb5bab1311a655f340bbfd076c /debian
parent4a9a10f926a8cc027182cd4c71c8aa6c0000dd56 (diff)
downloadmongo-9dca13232a0578e30311f2f27bd150d83bb0b00d.tar.gz
SERVER-1654 modifies Debian startup script
Diffstat (limited to 'debian')
-rw-r--r--debian/init.d15
1 files changed, 4 insertions, 11 deletions
diff --git a/debian/init.d b/debian/init.d
index f2cfb7d08ac..7e5169d8dde 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -50,13 +50,12 @@ 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
NAME=mongodb
+# Defaults. Can be overridden by the /etc/default/$NAME
+# Other configuration options are located in $CONF file. See here for more:
+# http://docs.mongodb.org/manual/reference/configuration-options/
CONF=/etc/mongodb.conf
-DATA=/var/lib/mongodb
-LOGDIR=/var/log/mongodb
PIDFILE=/var/run/$NAME.pid
-LOGFILE=$LOGDIR/$NAME.log # Server logfile
ENABLE_MONGODB=yes
# Include mongodb defaults if available
@@ -83,10 +82,6 @@ if test "x$ENABLE_MONGODB" != "xyes"; then
exit 0
fi
-if test ! -x $DATA; then
- mkdir $DATA || exit 0
-fi
-
. /lib/lsb/init-functions
STARTTIME=1
@@ -96,12 +91,10 @@ DIETIME=10 # Time to wait for the server to die, in seconds
# 'restart' will not work
DAEMONUSER=${DAEMONUSER:-mongodb}
-DAEMON_OPTS=${DAEMON_OPTS:-"--dbpath $DATA --logpath $LOGFILE run"}
-DAEMON_OPTS="$DAEMON_OPTS --config $CONF"
+DAEMON_OPTS=${DAEMON_OPTS:-"--config $CONF"}
set -e
-
running_pid() {
# Check if a given process pid's cmdline matches a given name
pid=$1