[master] c1ae9a9 Update instructions on port change with systemd.

Lasse Karstensen lkarsten at varnish-software.com
Thu Mar 10 13:12:03 CET 2016

commit c1ae9a9e9b49911ce07ca1428aca2cec4fd470f7
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Thu Mar 10 13:09:44 2016 +0100

    Update instructions on port change with systemd.
    As suggested by Przemek Sobstel on github.

diff --git a/doc/sphinx/tutorial/putting_varnish_on_port_80.rst b/doc/sphinx/tutorial/putting_varnish_on_port_80.rst
index 3e57917..16d38bc 100644
--- a/doc/sphinx/tutorial/putting_varnish_on_port_80.rst
+++ b/doc/sphinx/tutorial/putting_varnish_on_port_80.rst
@@ -9,10 +9,10 @@ First we stop varnish: ``service varnish stop``
 Now we need to edit the configuration file that starts Varnish.
+Debian/Ubuntu (legacy)
-On Debian/Ubuntu this is `/etc/default/varnish`. In the file you'll find
+On older Debian/Ubuntu this is `/etc/default/varnish`. In the file you'll find
 some text that looks like this::
   DAEMON_OPTS="-a :6081 \
@@ -29,6 +29,26 @@ Change it to::
                -S /etc/varnish/secret \
                -s malloc,256m"
+Debian (v8+) / Ubuntu (v15.04+)
+On more recent Debian and Ubuntu systems this is configured in the systemd
+service file.
+Applying changes to the default service is best done by creating a new file
+  [Service]
+  ExecStart=
+  ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
+This will override the ExecStart part of the default configuration shipped
+with Varnish Cache.
+Run ``systemctl daemon-reload`` to make sure systemd picks up the new
+configuration before restarting Varnish.
 Red Hat Enterprise Linux / CentOS
@@ -42,4 +62,3 @@ Restarting Varnish again
 Once the change is done, restart Varnish: ``service varnish start``.
 Now everyone accessing your site will be accessing through Varnish.

More information about the varnish-commit mailing list