[Pkg-varnish-devel] Bug#749272: varnish doesn't source /etc/default/varnish when started with systemd

Glennie Vignarajah glennie at glennie.fr
Sun May 25 19:23:01 UTC 2014


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varnish.service.patch
Type: text/x-diff
Size: 509 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-varnish-devel/attachments/20140525/7948f773/attachment.patch>


More information about the Pkg-varnish-devel mailing list