varnish: fix service nobody gid; use make_dirs to create required dir.

This commit is contained in:
Juan RP 2012-12-11 16:10:10 +01:00
parent 1e734d5ac1
commit f7d8d51c39
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Description=Web Application Accelerator
After=network.target After=network.target
[Service] [Service]
ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -f /etc/varnish/default.vcl -T localhost:6082 -s malloc,64M -u nobody -g nobody -F ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -f /etc/varnish/default.vcl -T localhost:6082 -s malloc,64M -u nobody -g nogroup -F
ExecReload=/usr/bin/varnish-vcl-reload ExecReload=/usr/bin/varnish-vcl-reload
[Install] [Install]

View File

@ -1,7 +1,7 @@
# Template file for 'varnish' # Template file for 'varnish'
pkgname=varnish pkgname=varnish
version=3.0.3 version=3.0.3
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static" configure_args="--disable-static"
makedepends="pkg-config pcre-devel readline-devel" makedepends="pkg-config pcre-devel readline-devel"
@ -22,6 +22,7 @@ long_desc="
subpackages="libvarnishapi libvarnishapi-devel" subpackages="libvarnishapi libvarnishapi-devel"
conf_files="/etc/varnish/default.vcl" conf_files="/etc/varnish/default.vcl"
systemd_services="varnish.service on" systemd_services="varnish.service on"
make_dirs="/var/varnish 750 nobody nogroup"
post_install() { post_install() {
# systemd reload helper # systemd reload helper