diff options
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 $? +} |