We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a6852 commit b90ccb6Copy full SHA for b90ccb6
debian/init.d
@@ -68,6 +68,10 @@ if test ! -x $DAEMON; then
68
exit 0
69
fi
70
71
+if test "x$ENABLE_MONGODB" != "xyes"; then
72
+ exit 0
73
+fi
74
+
75
if test ! -x $DATA; then
76
mkdir $DATA || exit 0
77
debian/mongodb.upstart
@@ -8,5 +8,8 @@ end script
8
start on runlevel [2345]
9
stop on runlevel [06]
10
11
-exec start-stop-daemon --start --quiet --chuid mongodb --exec /usr/bin/mongod -- --config /etc/mongodb.conf
12
-
+script
+ ENABLE_MONGODB="yes"
13
+ if [ -f /etc/default/mongodb ]; then . /etc/default/mongodb; fi
14
+ if [ "x$ENABLE_MONGODB" = "xyes" ]; then start-stop-daemon --start --quiet --chuid mongodb --exec /usr/bin/mongod -- --config /etc/mongodb.conf; fi
15
+end script
0 commit comments