diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-15 08:27:27 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-15 08:27:38 +0000 |
commit | f3166b37956c87106d433d8314b2705f8efd0b91 (patch) | |
tree | 09be70e6e7219c76ff4aec68777ee36cbb5c3e52 /testing/varnish/varnishd.initd | |
parent | cfe93befa1f0680f648e8a90085da374932225cd (diff) | |
download | aports-f3166b37956c87106d433d8314b2705f8efd0b91.tar.bz2 aports-f3166b37956c87106d433d8314b2705f8efd0b91.tar.xz |
testing/varnish: move to main
Diffstat (limited to 'testing/varnish/varnishd.initd')
-rwxr-xr-x | testing/varnish/varnishd.initd | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/testing/varnish/varnishd.initd b/testing/varnish/varnishd.initd deleted file mode 100755 index 2ed5b751d4..0000000000 --- a/testing/varnish/varnishd.initd +++ /dev/null @@ -1,44 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.7 2009/08/30 06:28:07 hollow Exp $ - -extra_command=reload -NOW=`date +%s` - -depend() { - need net -} - -start() { - ebegin "Starting varnish" - #allow varnishd to lock logfile to memory - ulimit -l 82000 - start-stop-daemon --quiet --start --pidfile /var/run/varnishd.pid --exec /usr/sbin/varnishd -- -P /var/run/varnishd.pid ${VARNISHD_OPTS} &> /dev/null - eend $? - - if [ "${VARNISHNCSA_ARGS}" != "" ]; then - ebegin "Starting varnish logging" - start-stop-daemon --quiet --start --pidfile /var/run/varnishncsa.pid --exec /usr/bin/varnishncsa -- -D -P /var/run/varnishncsa.pid ${VARNISHNCSA_ARGS} - eend $? - fi -} - -stop() { - ebegin "Stopping varnish" - start-stop-daemon --quiet --stop --pidfile /var/run/varnishd.pid - eend $? - - if [ -e /var/run/varnishncsa.pid ]; then - ebegin "Stopping varnish logging" - start-stop-daemon --quiet --stop --pidfile /var/run/varnishncsa.pid - eend $? - fi -} - -reload() { - ebegin "Reloading varnish" - /usr/bin/varnishadm -T $ADMINHOSTPORT vcl.load reload$NOW $CFG_FILE - /usr/bin/varnishadm -T $ADMINHOSTPORT vcl.use reload$NOW $CFG_FILE - eend $? -} |