summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2017-11-20 21:58:07 +0100
committerAnthony G. Basile <blueness@gentoo.org>2017-11-20 17:53:33 -0500
commitfcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4 (patch)
treeb4cacf0e72aa5e543c5e98251441488267f9c32a /www-servers/varnish/files/varnishncsa.initd-r1
parentdev-util/vint: remove old (diff)
downloadgentoo-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/varnishncsa.initd-r1')
-rw-r--r--www-servers/varnish/files/varnishncsa.initd-r144
1 files changed, 0 insertions, 44 deletions
diff --git a/www-servers/varnish/files/varnishncsa.initd-r1 b/www-servers/varnish/files/varnishncsa.initd-r1
deleted file mode 100644
index 8a584decc965..000000000000
--- a/www-servers/varnish/files/varnishncsa.initd-r1
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-VARNISHNCSA_PID=${VARNISHNCSA_PID:-/run/${SVCNAME}.pid}
-
-command="${VARNISHNCSA:-/usr/bin/varnishncsa}"
-command_args="-D -P ${VARNISHNCSA_PID} ${VARNISHNCSA_OPTS}"
-pidfile="${VARNISHNCSA_PID}"
-
-extra_started_commands="reload rotate flush"
-
-description_rotate="Rotate the log file"
-description_flush="Flush any outstanding transactions"
-
-# We need to make sure varnishd has started first, bug #524284
-start_pre() {
- TIMEOUT=${TIMEOUT:-5}
-
- local i=0
- while [ $i -lt ${TIMEOUT} ]; do
- echo status | varnishadm 2>/dev/null | grep -q "Child in state running"
- test $? -eq 0 && break
-
- sleep 1 && i=$(expr $i + 1)
- done
-}
-
-rotate() {
- ebegin "Rotating log file"
- start-stop-daemon -p ${VARNISHNCSA_PID} -s SIGHUP
- eend $?
-}
-
-flush() {
- ebegin "Flushing any outstanding transactions"
- start-stop-daemon -p ${VARNISHNCSA_PID} -s SIGUSR1
- eend $?
-}
-
-reload() {
- flush
- rotate
-}