varnishlog exists when sending SIGHUP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
varnish (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The currently shipped systemd unit file causes varnishlog to exit when SIGHUP is sent to it.
SIGHUP has two meanings for varnishlog:
1) when running in daemon mode: reopen logfile
2) when not running in daemon mode: exit
Since the current systemd unit file doesn't run varnishlog in daemon mode, a reload will result in a stop, instead of a reopen of the logfile.
This systemd unit file does work properly (for me, at least):
[Unit]
Description=Varnish HTTP accelerator log daemon
After=varnish.
[Service]
RuntimeDirector
Type=forking
User=varnishlog
Group=varnish
ExecStart=
ExecReload=
PIDFile=
[Install]
WantedBy=
This also concerns varnishncsa.
See https:/ /github. com/varnishcach e/pkg-varnish- cache/issues/ 31#issuecomment -231087399 for context.