summaryrefslogtreecommitdiff
path: root/databases/arangodb32/files/arangod.in
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2021-01-02 13:49:04 +0000
committerRene Ladan <rene@FreeBSD.org>2021-01-02 13:49:04 +0000
commitb87c6bce5f99d9e26560ed323c58af13a1704be3 (patch)
tree77a459c21e886c9b22617fc931cfc76d80e6de60 /databases/arangodb32/files/arangod.in
parentdeskutils/zim: remove optional dependency on expired devel/bzr (diff)
Remove a few expired ports:
2020-12-31 audio/ardour: Uses Python 2.7 version of scons, and Python 2.7 which is EOLed upstream 2020-12-31 audio/mixxx21: Uses Python 2.7 version of scons, and Python 2.7 which is EOLed upstream 2020-12-31 databases/arangodb32: Uses Python 2.7 which is EOLed upstream 2020-12-31 databases/arangodb33: Uses Python 2.7 which is EOLed upstream 2020-12-31 devel/bzr: Uses Python 2.7 which is EOLed upstream 2020-12-31 devel/chromium-gn: Uses deprecated version of python, use devel/gn instead 2020-12-31 devel/mongo-cxx-driver: Uses Python 2.7 version of scons, and Python 2.7 which is EOLed upstream
Notes
Notes: svn path=/head/; revision=559941
Diffstat (limited to 'databases/arangodb32/files/arangod.in')
-rw-r--r--databases/arangodb32/files/arangod.in86
1 files changed, 0 insertions, 86 deletions
diff --git a/databases/arangodb32/files/arangod.in b/databases/arangodb32/files/arangod.in
deleted file mode 100644
index a71bc94b6f90..000000000000
--- a/databases/arangodb32/files/arangod.in
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: arangod
-# REQUIRE: NETWORK ldconfig
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
-# to enable this service:
-#
-# arangod_enable (bool): Set to "NO" by default.
-# Set it to "YES" to enable arangod.
-%%LEGACY_LIMITS%%# arangod_limits (bool): Set to "NO" by default.
-%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U arangodb`
-%%LEGACY_LIMITS%%# just before arangod starts.
-# arangod_dbpath (str): Default to "/var/db/arangodb"
-# Base database directory.
-# arangod_logpath (str): Default to "/var/log/arangodb"
-# Base logging directory
-# arangod_apppath (str): Default to "/var/db/arangodb-apps"
-# Base apps directory
-# arangod_flags (str): Custom additional arguments to be passed to arangod.
-# Default to "".
-# arangod_config (str): Default to "%%PREFIX%%/etc/arangodb/arangod.conf"
-# Path to config file
-#
-
-. /etc/rc.subr
-
-name="arangod"
-rcvar=arangod_enable
-
-load_rc_config $name
-
-: ${arangod_enable="NO"}
-%%LEGACY_LIMITS%%: ${arangod_limits="NO"}
-: ${arangod_dbpath="/var/db/arangodb"}
-: ${arangod_logpath="/var/log/arangodb"}
-: ${arangod_apppath="/var/db/arangodb-apps"}
-: ${arangod_flags=""}
-: ${arangod_user="arangodb"}
-: ${arangod_group="arangodb"}
-: ${arangod_config="%%PREFIX%%/etc/arangodb/arangod.conf"}
-
-pidfile="${arangod_dbpath}/arangod.lock"
-command=%%PREFIX%%/sbin/${name}
-command_args="--configuration $arangod_config --database.directory $arangod_dbpath --log.output ${arangod_logpath}/arangod.log --javascript.app-path ${arangod_apppath} --daemon --pid-file ${pidfile} >/dev/null 2>/dev/null"
-start_precmd="${name}_prestart"
-
-arangod_create_dbpath()
-{
- mkdir ${arangod_dbpath} >/dev/null 2>/dev/null
- [ $? -eq 0 ] && chown -R ${arangod_user}:${arangod_group} ${arangod_dbpath}
-}
-
-arangod_create_logpath()
-{
- mkdir ${arangod_logpath} >/dev/null 2>/dev/null
- [ $? -eq 0 ] && chown -R ${arangod_user}:${arangod_group} ${arangod_logpath}
-}
-
-arangod_create_apppath()
-{
- mkdir ${arangod_apppath} >/dev/null 2>/dev/null
- [ $? -eq 0 ] && chown -R ${arangod_user}:${arangod_group} ${arangod_apppath}
-}
-
-arangod_prestart()
-{
- if [ ! -d ${arangod_dbpath} ]; then
- arangod_create_dbpath || return 1
- fi
- if [ ! -d ${arangod_logpath} ]; then
- arangod_create_logpath || return 1
- fi
- if [ ! -d ${arangod_apppath} ]; then
- arangod_create_apppath || return 1
- fi
-%%LEGACY_LIMITS%% if checkyesno arangod_limits; then
-%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null
-%%LEGACY_LIMITS%% else
-%%LEGACY_LIMITS%% return 0
-%%LEGACY_LIMITS%% fi
-%%MODERN_LIMITS%% return 0
-}
-
-run_rc_command "$1"