diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
commit | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (patch) | |
tree | 555c194dbeb0fb2ac4ad3cde7c0f6a80fd330ce2 /net-proxy/redsocks/files/redsocks.init-r1 | |
parent | 4df3bf9762850b34cd1ead5c80374d1a0fc3362e (diff) |
gentoo resync : 17.07.2021
Diffstat (limited to 'net-proxy/redsocks/files/redsocks.init-r1')
-rw-r--r-- | net-proxy/redsocks/files/redsocks.init-r1 | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/net-proxy/redsocks/files/redsocks.init-r1 b/net-proxy/redsocks/files/redsocks.init-r1 deleted file mode 100644 index 861054fc914a..000000000000 --- a/net-proxy/redsocks/files/redsocks.init-r1 +++ /dev/null @@ -1,43 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -command=${REDSOCKS_BINARY:=/usr/sbin/redsocks} -: ${REDSOCKS_CONFIG:=/etc/redsocks.conf} -pidfile=${REDSOCKS_PIDFILE:=/run/redsocks/redsocks.pid} -command_args="-p ${pidfile} -c ${REDSOCKS_CONFIG}" - -extra_commands="checkconfig" -extra_started_commands="reload" - -depend() { - need localmount - use dns -} - -checkconfig() { - if [ ! -f "${REDSOCKS_CONFIG}" ] ; then - eerror "No ${REDSOCKS_CONFIG} file exists!" - return 1 - fi - - "${command}" -t -c ${REDSOCKS_CONFIG} || return 1 -} - -start_pre() { - checkconfig || return 1 -} - -stop_pre() { - if [ "${RC_CMD}" = "restart" ] ; then - checkconfig || return 1 - fi -} - -reload() { - checkconfig || return 1 - - ebegin "Reloading ${SVCNAME}" - start-stop-daemon --signal HUP --pidfile "${pidfile}" - eend $? -} |