Changes of Revision 6
[-] [+] | Changed | varnish.spec |
[-] [+] | Added | varnish.service ^ |
@@ -0,0 +1,11 @@ +[Unit] +Description=Varnish HTTP accelerator/reverse proxy +After=network.target + +[Service] +EnvironmentFile=/etc/sysconfig/varnish +PIDFile=/var/run/varnishd.pid +ExecStart=/usr/sbin/varnishd $VARNISHD_PARAMS -P /var/run/varnishd.pid -F + +[Install] +WantedBy=multi-user.target | ||
[-] [+] | Added | varnishlog.service ^ |
@@ -0,0 +1,12 @@ +[Unit] +Description=Varnish log generator +Requires=varnish.service +#After= is not required + +[Service] +EnvironmentFile=/etc/sysconfig/varnish +PIDFile=/var/run/varnishlog.pid +ExecStart=/usr/sbin/varnishncsa $VARNISHLOG_PARAMS -P /var/run/varnishlog.pid + +[Install] +WantedBy=multi-user.target |