diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2017-11-20 21:58:07 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-11-20 17:53:33 -0500 |
commit | fcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4 (patch) | |
tree | b4cacf0e72aa5e543c5e98251441488267f9c32a /www-servers/varnish/files/varnishd.initd-r3 | |
parent | dev-util/vint: remove old (diff) | |
download | gentoo-fcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4.tar.gz gentoo-fcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4.tar.bz2 gentoo-fcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4.zip |
www-servers/varnish: remove unused files
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'www-servers/varnish/files/varnishd.initd-r3')
-rw-r--r-- | www-servers/varnish/files/varnishd.initd-r3 | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/www-servers/varnish/files/varnishd.initd-r3 b/www-servers/varnish/files/varnishd.initd-r3 deleted file mode 100644 index ff8eaf691ea3..000000000000 --- a/www-servers/varnish/files/varnishd.initd-r3 +++ /dev/null @@ -1,77 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -VARNISHD_PID=${VARNISHD_PID:-/run/${SVCNAME}.pid} -CONFIGFILES="${CONFIGFILE:-/etc/varnish/default.vcl}" - -command="${VARNISHD:-/usr/sbin/varnishd}" -command_args="-P ${VARNISHD_PID} -f ${CONFIGFILE} ${VARNISHD_OPTS}" -pidfile="${VARNISHD_PID}" - -extra_commands="configtest" -extra_started_commands="reload" - -description_configtest="Run syntax tests for configuration files." -description_reload="Reloads the configuration." - -depend() { - need net -} - -configtest() { - ebegin "Checking ${SVCNAME} configuration" - checkconfig - eend $? -} - -checkconfig() { - ${VARNISHD} -C -f ${CONFIGFILE} >/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} has detected an error in your setup:" - ${VARNISHD} -C -f ${CONFIGFILE} - fi - - return $ret -} - -start_pre() { - checkconfig || return 1 -} - -stop_pre() { - if [ "${RC_CMD}" = "restart" ]; then - checkconfig || return 1 - fi -} - -reload() { - checkconfig || return 1 - - ebegin "Reloading varnish" - - $VARNISHADM vcl.list >/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} cannot list configuration" - return 1 - fi - - new_config="reload_$(date +%FT%H:%M:%S)" - $VARNISHADM vcl.load $new_config $CONFIGFILE >/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} cannot load configuration" - return 1 - fi - - $VARNISHADM vcl.use $new_config >/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} cannot switch configuration" - return 1 - fi - - eend 0 -} |