Hi,

changing the port varnish should listen has to be modified via systemd
but but via the config file, as the official document explains.

http://www.varnish-cache.org/docs/trunk/tutorial/putting_varnish_on_port_80.html

> 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 
> /etc/systemd/system/varnish.service.d/customexec.conf:
> 
> [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.


-- 
Soramichi Akiyama <akiy...@m.soramichi.jp>

Reply via email to