22
0
Fork 0

quelques améliorations

This commit is contained in:
gcolpart 2016-11-12 13:02:20 +01:00
parent 8c89f3ad51
commit 171726ed07
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ Le fichier `/etc/default/varnish` [n'est plus utilisé en Debian 8 avec Systemd]
# cp -a /lib/systemd/system/varnish.service /etc/systemd/system # cp -a /lib/systemd/system/varnish.service /etc/systemd/system
~~~ ~~~
`/etc/systemd/system/varnish.service` : `/etc/systemd/system/varnish.service` (ne pas oublier de `systemctl daemon-reload` à chaque modification) :
~~~ ~~~
ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -T localhost:6082 -f /etc/varnish/default.vcl \ ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -T localhost:6082 -f /etc/varnish/default.vcl \
@ -38,7 +38,7 @@ ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -T localhost:6082 -f /etc/varnish/def
ExecReload=/etc/varnish/reload-vcl.sh ExecReload=/etc/varnish/reload-vcl.sh
~~~ ~~~
`/etc/varnish/reload-vcl.sh` : `/etc/varnish/reload-vcl.sh` (à mettre en *chmod 700* bien sûr) :
~~~{.bash} ~~~{.bash}
#!/bin/sh #!/bin/sh