severity 855287 normal
tags 855287 wontfix
thanks

The file /etc/default/varnish is deprecated for the default init system.

Please use a systems drop-in unit instead to override the command line
used to start varnish.

It could look like this:

,----[ /etc/systemd/system/varnish.service.d/foo.conf ]
| [Service]
| # Clear existing ExecStart= (required)
| ExecStart=
| # Set a new ExecStart=
| ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 \
|   -T localhost:8080 -f /etc/varnish/default.vcl \
|   -S /etc/varnish/secret -s malloc,16g
`----

If you _really_ want to use /etc/default/varnish for some reason, you
can add a systemd drop-in unit to read that environment file, and
override the command line used to start varnish, using the variables
from /etc/default/varnish.

,----[ /etc/systemd/system/varnish.service.d/bar.conf ]
| [Service]
| # Get environment variables
| EnvironmentFile=-/etc/default/varnish
| # Clear existing ExecStart= (required)
| ExecStart=
| # Set a new ExecStart=
| ExecStart=/usr/sbin/varnishd $DAEMON_OPTS
`----

Also, severity "grave"?  Really?

-- 
Stig Sandbeck Mathisen

Reply via email to