diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-14 14:29:25 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-14 14:30:06 +0000 |
commit | ea30afc7785b4821628b194f0ff2f60c88337973 (patch) | |
tree | db132dde35aa39c85e20dcd484672034e5a8701f /testing/varnish/varnishd.initd | |
parent | 77adad331a213656cca46e9ac1f5282d854a9f99 (diff) | |
download | aports-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-x | testing/varnish/varnishd.initd | 7 |
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 $? +} |