Package: varnish Version: 4.0.0-2 Severity: normal Tags: patch Hi, When varnish is started via systemd, it doesn't use configuration from /etc/default/varnish (config section: Alternative 2). In order to use the configuration from /etc/default/varnish, varnish.service should include "EnvironmentFile=/etc/default/varnish" under [Service] section. The attached patch corrects the issue. Regards,
-- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages varnish depends on: ii adduser 3.113+nmu3 ii gcc 4:4.8.2-4 ii init-system-helpers 1.18 ii libc6 2.18-6 ii libc6-dev [libc-dev] 2.18-6 ii libedit2 3.1-20140213-1 ii libjemalloc1 3.6.0-1 ii libncurses5 5.9+20140118-1 ii libpcre3 1:8.31-5 ii libtinfo5 5.9+20140118-1 ii libvarnishapi1 4.0.0-2 varnish recommends no packages. Versions of packages varnish suggests: pn varnish-doc <none> -- Configuration Files: /etc/default/varnish changed [not included] /etc/init.d/varnish changed [not included] /etc/varnish/default.vcl changed [not included] -- debconf-show failed -- debsums errors found: debsums: changed file /lib/systemd/system/varnish.service (from varnish package)
--- a/varnish.service 2014-05-25 20:31:18.224666757 +0200 +++ b/varnish.service 2014-05-25 20:29:09.415647522 +0200 @@ -5,8 +5,9 @@ Type=forking LimitNOFILE=131072 LimitMEMLOCK=82000 +EnvironmentFile=/etc/default/varnish ExecStartPre=/usr/sbin/varnishd -C -f /etc/varnish/default.vcl -ExecStart=/usr/sbin/varnishd -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m +ExecStart=/usr/sbin/varnishd $DAEMON_OPTS ExecReload=/usr/share/varnish/reload-vcl [Install]