aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongodb/mongodb.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-28 15:48:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-28 15:48:23 +0000
commit74ff2b35c9d2afbd9fab439d0055f5b66b386ad9 (patch)
treef8cd0d5c638de4ae4e3f26d597c04ad7fabfc1a2 /testing/mongodb/mongodb.initd
parente11a0b3bd993f05d269be00a893730d30a06e6b6 (diff)
downloadaports-74ff2b35c9d2afbd9fab439d0055f5b66b386ad9.tar.bz2
aports-74ff2b35c9d2afbd9fab439d0055f5b66b386ad9.tar.xz
testing/mongodb: move to unmaintained does not build
Diffstat (limited to 'testing/mongodb/mongodb.initd')
-rw-r--r--testing/mongodb/mongodb.initd40
1 files changed, 0 insertions, 40 deletions
diff --git a/testing/mongodb/mongodb.initd b/testing/mongodb/mongodb.initd
deleted file mode 100644
index 5b7b77eebf..0000000000
--- a/testing/mongodb/mongodb.initd
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd,v 1.5 2013/01/18 11:19:27 ultrabug Exp $
-
-depend() {
- need net
-}
-
-start() {
- checkpath -d -m 0750 -o "${MONGODB_USER}":mongodb "${MONGODB_RUN}"
-
- # Listen to MONGODB_IP if configured
- [ -z "${MONGODB_IP}" ] || MONGODB_OPTIONS="--bind_ip ${MONGODB_IP} ${MONGODB_OPTIONS}"
-
- # Baselayout-1 user should use --chuid instead of --user
- local USEROPT="--user"
- if [ ! -f /etc/init.d/sysfs ]; then
- USEROPT="--chuid"
- fi
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --background --start --make-pidfile \
- --pidfile ${MONGODB_RUN:-/var/run/mongodb}/${SVCNAME}.pid \
- ${USEROPT} ${MONGODB_USER:-mongodb} \
- --exec ${MONGODB_EXEC:-/usr/bin/mongod} \
- -- \
- --port ${MONGODB_PORT:-27017} \
- --dbpath ${MONGODB_DATA:-/var/lib/mongodb} \
- --unixSocketPrefix ${MONGODB_RUN:-/var/run/mongodb} \
- --logappend --logpath /var/log/mongodb/${SVCNAME}.log \
- ${MONGODB_OPTIONS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --pidfile ${MONGODB_RUN:-/var/run/mongodb}/${SVCNAME}.pid
- eend $?
-}