c3ffd5c419
move service to paths.target remove startup dependency change to try-reload-or-restart which has this logic: Reload service if it supports it. If not, stop and then start instead. Does nothing if the service is not running.
11 lines
207 B
SYSTEMD
11 lines
207 B
SYSTEMD
[Unit]
|
|
Description="Reload Varnish on changes to site configs"
|
|
|
|
[Path]
|
|
PathChanged=/etc/varnish/sites.d/
|
|
PathChanged=/etc/varnish/sites.vcl
|
|
Unit=vhost-reload-varnish.service
|
|
|
|
[Install]
|
|
WantedBy=paths.target
|