diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2019-01-29 09:46:29 +0100 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2019-01-29 09:47:23 +0100 |
commit | f67e1a08b47a6993b97d1d3e27666249e1cfaeb1 (patch) | |
tree | 31b5f14991d0845e7560ab2be09803eca9b6ea68 /net-proxy/haproxy/files | |
parent | www-client/firefox: require >=dev-util/cbindgen-0.6.7 (diff) | |
download | gentoo-f67e1a08b47a6993b97d1d3e27666249e1cfaeb1.tar.gz gentoo-f67e1a08b47a6993b97d1d3e27666249e1cfaeb1.tar.bz2 gentoo-f67e1a08b47a6993b97d1d3e27666249e1cfaeb1.zip |
net-proxy/haproxy: Cleanup old versions
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
Diffstat (limited to 'net-proxy/haproxy/files')
-rw-r--r-- | net-proxy/haproxy/files/haproxy.initd-r2 | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/net-proxy/haproxy/files/haproxy.initd-r2 b/net-proxy/haproxy/files/haproxy.initd-r2 deleted file mode 100644 index e58c7c1fbfb0..000000000000 --- a/net-proxy/haproxy/files/haproxy.initd-r2 +++ /dev/null @@ -1,46 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_commands="checkconfig" -extra_started_commands="reload" - -command="/usr/bin/haproxy" -pidfile="/run/${SVCNAME}.pid" - -if [ -z "${CONFFILE}" -a -d "/etc/haproxy" -a -f "/etc/haproxy/${SVCNAME}.cfg" ]; then - CONFFILE=/etc/haproxy/${SVCNAME}.cfg -else - CONFFILE=/etc/${SVCNAME}.cfg -fi - -command_args="-D -p ${pidfile} -f ${CONFFILE}" - -depend() { - need net - use dns logger -} - -checkconfig() { - if [ ! -f "${CONFFILE}" ]; then - eerror "${CONFFILE} does not exist!" - return 1 - fi - - ebegin "Checking ${CONFFILE}" - $command -q -c -f "${CONFFILE}" - eend $? -} - -stop_pre() { - if [ "${RC_CMD}" = "restart" ]; then - checkconfig || return 1 - fi -} - -reload() { - ebegin "Reloading ${SVCNAME}" - checkconfig || { eerror "Reloading failed, please fix your ${CONFFILE} first"; return 1; } - $command -D -p "${pidfile}" -f "${CONFFILE}" -sf $(cat "${pidfile}") - eend $? -} |