aboutsummaryrefslogtreecommitdiffstats
path: root/testing/varnish/varnishd.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-06-14 14:29:25 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-06-14 14:30:06 +0000
commitea30afc7785b4821628b194f0ff2f60c88337973 (patch)
treedb132dde35aa39c85e20dcd484672034e5a8701f /testing/varnish/varnishd.initd
parent77adad331a213656cca46e9ac1f5282d854a9f99 (diff)
downloadaports-ea30afc7785b4821628b194f0ff2f60c88337973.tar.bz2
aports-ea30afc7785b4821628b194f0ff2f60c88337973.tar.xz
testing/varnish: create log dir and add reload function
Diffstat (limited to 'testing/varnish/varnishd.initd')
-rwxr-xr-xtesting/varnish/varnishd.initd7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/varnish/varnishd.initd b/testing/varnish/varnishd.initd
index f65cce7122..471d8e489f 100755
--- a/testing/varnish/varnishd.initd
+++ b/testing/varnish/varnishd.initd
@@ -32,3 +32,10 @@ stop() {
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 $?
+}