Commit 09c93b40 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Improve systemd service units

Discussed with ingvar.
parent 47e82920
...@@ -27,6 +27,7 @@ EnvironmentFile=/etc/varnish/varnish.params ...@@ -27,6 +27,7 @@ EnvironmentFile=/etc/varnish/varnish.params
Type=forking Type=forking
PIDFile=/var/run/varnish.pid PIDFile=/var/run/varnish.pid
PrivateTmp=true PrivateTmp=true
ExecStartPre=/usr/sbin/varnishd -C -f $VARNISH_VCL_CONF
ExecStart=/usr/sbin/varnishd \ ExecStart=/usr/sbin/varnishd \
-P /var/run/varnish.pid \ -P /var/run/varnish.pid \
-f $VARNISH_VCL_CONF \ -f $VARNISH_VCL_CONF \
......
[Unit] [Unit]
Description=Varnish HTTP accelerator logging daemon Description=Varnish HTTP accelerator logging daemon
After=network.target After=varnish.service
[Service] [Service]
Type=forking Type=forking
......
[Unit] [Unit]
Description=Varnish NCSA logging Description=Varnish HTTP accelerator NCSA daemon
After=network.target After=varnish.service
[Service] [Service]
Type=forking Type=forking
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment