I'd like to run a script when Varnish starts.
This script should execute a webrequest to a webserver (its backend), which then makes sure Varnish's cache gets filled with all pages residing on this webserver. So this script makes sure everyting is in Varnish's cache when Varnish (re)starts, because we're using Varnish as cache and fail-over (the webserver should be able to be down for let's say a week for example, without any consequences).
What are the possibilities to do this?
We can't just edit /etc/init.d/varnish and /usr/sbin/varnishd because they can het overwritten when updating varnish?