diff options
Diffstat (limited to 'dev-db/cockroach/files')
-rw-r--r-- | dev-db/cockroach/files/cockroach-limits.conf | 4 | ||||
-rw-r--r-- | dev-db/cockroach/files/cockroach.confd | 14 | ||||
-rw-r--r-- | dev-db/cockroach/files/cockroach.confd-1.0 | 45 | ||||
-rw-r--r-- | dev-db/cockroach/files/cockroach.initd | 23 | ||||
-rw-r--r-- | dev-db/cockroach/files/cockroach.initd-1.0 | 60 | ||||
-rw-r--r-- | dev-db/cockroach/files/cockroach.initd-1.0.1 | 70 |
6 files changed, 0 insertions, 216 deletions
diff --git a/dev-db/cockroach/files/cockroach-limits.conf b/dev-db/cockroach/files/cockroach-limits.conf deleted file mode 100644 index 2014a5d508cb..000000000000 --- a/dev-db/cockroach/files/cockroach-limits.conf +++ /dev/null @@ -1,4 +0,0 @@ -# This is needed because cockroach can open a high number of file -# descriptors -cockroach soft nofile 35000 -cockroach hard nofile 35000 diff --git a/dev-db/cockroach/files/cockroach.confd b/dev-db/cockroach/files/cockroach.confd deleted file mode 100644 index 37593e217c71..000000000000 --- a/dev-db/cockroach/files/cockroach.confd +++ /dev/null @@ -1,14 +0,0 @@ -# The default setup is for the first node of an insecure cluster that only -# listens on localhost. -# Please read the cockroach manual at the following url and configure -# the start_args and stop_args correctly if you plan to use cockroach in -# production. -# -# http://cockroachlabs.com/docs -# -# arguments to use when starting the database -start_args="--http-host=localhost --host=localhost --insecure ---store=/var/lib/cockroach/data" -# -# arguments to use when stopping the database -stop_args="--host localhost --insecure" diff --git a/dev-db/cockroach/files/cockroach.confd-1.0 b/dev-db/cockroach/files/cockroach.confd-1.0 deleted file mode 100644 index 7874cc1cab23..000000000000 --- a/dev-db/cockroach/files/cockroach.confd-1.0 +++ /dev/null @@ -1,45 +0,0 @@ -# The default setup is for the first node of an insecure cluster that only -# listens on localhost. -# -# Please read the cockroach manual at the following url and configure -# this file correctly if you plan to use cockroach in production. -# -# http://cockroachlabs.com/docs -# -#For more information about what the arguments mean, run -#"cockroach start --help" or "cockroach quit --help". -# -#These values are passed to the appropriate arguments when starting or -#stopping the cockroach database. -#Leaving these commented accepts the cockroach defaults with the -#exceptions of host, http_host, insecure and log_path. -# -#The default for host and http_host is localhost instead of the catch-all -#address. If you want to use the catch-all address for either of these, -#please use -# "all" for the setting. # -# -# The default for insecure is yes which passes the --insecure argument to -# cockroach. If you want a secure connection, set insecure=no and set -# certs_path to the location of your certificates. -# -#log_path defaults to /var/log/${RC_SVCNAME}. -# -#attrs="" -#cache="" -#certs_path="" -#host="" -#http_host="" -#http_port="" -#insecure="" -#join="" -#locality="" -#log_path="" -#port="" -#store="" -# -# extra arguments to use when starting the database -# start_args="" -# -# extra arguments to use when stopping the database -# stop_args="" diff --git a/dev-db/cockroach/files/cockroach.initd b/dev-db/cockroach/files/cockroach.initd deleted file mode 100644 index 3629cb6605fa..000000000000 --- a/dev-db/cockroach/files/cockroach.initd +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command="/usr/bin/cockroach" -pidfile=/run/cockroach/cockroach.pid -command_args="start --background --log-dir=/var/log/cockroach - --pid-file=\"${pidfile}\" ${start_args}" -start_stop_daemon_args="--quiet --user cockroach" - -depend() { - use net -} - -start_pre() { - checkpath -d -m 0755 -o cockroach:cockroach $(dirname ${pidfile}) -} - -stop() { -ebegin "bringing down ${RC_SVCNAME}" -"${command}" quit ${stop_args} -eend $? -} diff --git a/dev-db/cockroach/files/cockroach.initd-1.0 b/dev-db/cockroach/files/cockroach.initd-1.0 deleted file mode 100644 index b2b4f6a0884f..000000000000 --- a/dev-db/cockroach/files/cockroach.initd-1.0 +++ /dev/null @@ -1,60 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command=/usr/bin/cockroach -pidfile=/run/${RC_SVCNAME}/cockroach.pid -start_stop_daemon_args="--quiet --user cockroach" -[ -n "${attrs}" ] && attrs_arg="--attrs=${attrs}" -[ -n "${cache}" ] && cache_arg="--cache=${cache}" -[ -n "${certs_path}" ] && certs_dir_arg="--certs-dir=${certs_path}" -[ "${host}" != all ] && host_arg="--host=${host:-localhost}" -[ "$http_host" != all ] && http_host_arg="--http-host=${http_host:-localhost}" -[ -n "${http_port}" ] && http_port_arg="--http-port=${http_port}" -yesno "${insecure:-yes}" && insecure_arg="--insecure" -[ -n "${join}" ] && join_arg="--join=${join}" -[ -n "${locality}" ] && locality_arg="--locality=\"${locality}\"" -log_path="${log_path:-/var/log/${RC_SVCNAME}}" -[ -n "${log_path}" ] && log_dir_arg="--log-dir=${log_path}" - pidfile_arg="--pid-file=${pidfile}" -[ -n "${port}" ] && port_arg="--port=${port}" -store_arg="--store=${store:-/var/lib/cockroach/data}" -command_args="start --background - ${attrs_arg} - ${cache_arg} - ${certs_dir_arg} - ${host_arg} - ${http_host_arg} - ${http_port_arg} - ${insecure_arg} - ${join_arg} - ${locality_arg} - ${log_dir_arg} - ${pidfile_arg} - ${port_arg} - ${store_arg} - ${start_args}" -quit_args=" - ${certs_dir_arg} - ${host_arg} - ${insecure_arg} - ${port_arg} - " - -depend() { - use net -} - -start_pre() { - if [ -n "${log_path}" ]; then - checkpath -d -m 0755 -o cockroach:cockroach "${log_path}" || - return 1 - fi - checkpath -d -m 0755 -o cockroach:cockroach "$(dirname ${pidfile})" -} - -stop() { -ebegin "bringing down ${RC_SVCNAME}" -eval ${command} quit ${quit_args} ${stop_args} -eend $? -} diff --git a/dev-db/cockroach/files/cockroach.initd-1.0.1 b/dev-db/cockroach/files/cockroach.initd-1.0.1 deleted file mode 100644 index 252fc6bf7bb8..000000000000 --- a/dev-db/cockroach/files/cockroach.initd-1.0.1 +++ /dev/null @@ -1,70 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -command=/usr/bin/cockroach -pidfile=/run/${RC_SVCNAME}/cockroach.pid -start_stop_daemon_args="--quiet --user cockroach" -[ -n "${attrs}" ] && attrs_arg="--attrs=${attrs}" -[ -n "${cache}" ] && cache_arg="--cache=${cache}" -[ -n "${certs_path}" ] && certs_dir_arg="--certs-dir=${certs_path}" -[ "${host}" != all ] && host_arg="--host=${host:-localhost}" -[ "$http_host" != all ] && http_host_arg="--http-host=${http_host:-localhost}" -[ -n "${http_port}" ] && http_port_arg="--http-port=${http_port}" -yesno "${insecure:-yes}" && insecure_arg="--insecure" -[ -n "${join}" ] && join_arg="--join=${join}" -[ -n "${locality}" ] && locality_arg="--locality=\"${locality}\"" -log_path="${log_path:-/var/log/${RC_SVCNAME}}" -[ -n "${log_path}" ] && log_dir_arg="--log-dir=${log_path}" - pidfile_arg="--pid-file=${pidfile}" -[ -n "${port}" ] && port_arg="--port=${port}" -store_arg="--store=${store:-/var/lib/cockroach/data}" -command_args="start --background - ${attrs_arg} - ${cache_arg} - ${certs_dir_arg} - ${host_arg} - ${http_host_arg} - ${http_port_arg} - ${insecure_arg} - ${join_arg} - ${locality_arg} - ${log_dir_arg} - ${pidfile_arg} - ${port_arg} - ${store_arg} - ${start_args}" -quit_args=" - ${certs_dir_arg} - ${host_arg} - ${insecure_arg} - ${port_arg} - " - -depend() { - use net -} - -start_pre() { - if [ -n "${log_path}" ]; then - checkpath -d -m 0755 -o cockroach:cockroach "${log_path}" || - return 1 - fi - checkpath -d -m 0755 -o cockroach:cockroach "$(dirname ${pidfile})" -} - -stop() { -ebegin "bringing down ${RC_SVCNAME}" -eval ${command} quit ${quit_args} ${stop_args} -eend $? -} - -stop_post() { - local cr_pid - read -r cr_pid < "${pidfile}" - while [ -d /proc/"${cr_pid}" ]; do - sleep 1 - done - rm -f "${pidfile}" - return 0 -} |