[Pkg-mongodb-maintainers] [pkg-mongodb] 28/394: added support for mongod config file
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Wed Sep 21 13:57:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository pkg-mongodb.
commit 55e3c9be2418138c16d1465db2c43b9bcd37fbd6
Author: Antonin Kral <a.kral at bobek.cz>
Date: Fri Feb 12 09:14:47 2010 +0100
added support for mongod config file
---
debian/dirs | 1 +
debian/init.d | 3 ++-
debian/mongodb.conf | 12 ++++++++++++
debian/rules | 4 ++++
4 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/debian/dirs b/debian/dirs
index a7b6e78..f36bce4 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -1,3 +1,4 @@
+etc
usr/bin
usr/sbin
var/lib/mongodb
diff --git a/debian/init.d b/debian/init.d
index 6b16908..c1bd8e9 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -52,6 +52,7 @@ DESC=database
# 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
@@ -80,7 +81,7 @@ 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:-"--dbpath $DATA --logpath $LOGFILE --config $CONF run"}
set -e
diff --git a/debian/mongodb.conf b/debian/mongodb.conf
new file mode 100644
index 0000000..0ffe523
--- /dev/null
+++ b/debian/mongodb.conf
@@ -0,0 +1,12 @@
+# This is an config file for MongoDB master daemon mongod
+# it is passed to mongod as --config parameter
+
+# Log and DB path are set in init.d script
+# logpath = /var/log/mongodb/mongod.log
+# dbpath = /var/lib/mongodb/
+
+# use 'true' for options that don't take an argument
+logappend = true
+bind_ip = 127.0.0.1
+#noauth = true
+
diff --git a/debian/rules b/debian/rules
index 506c8df..63871eb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,6 +67,10 @@ install: build
install -m 644 $(CURDIR)/debian/lintian-overrides \
$(CURDIR)/debian/mongodb/usr/share/lintian/overrides/mongodb
+ mkdir -p $(CURDIR)/debian/mongodb/etc
+ install -m 644 $(CURDIR)/debian/mongodb.conf \
+ $(CURDIR)/debian/mongodb/etc/mongodb.conf
+
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git
More information about the Pkg-mongodb-maintainers
mailing list