varnish: fix service nobody gid; use make_dirs to create required dir.
This commit is contained in:
parent
1e734d5ac1
commit
f7d8d51c39
|
@ -3,7 +3,7 @@ Description=Web Application Accelerator
|
|||
After=network.target
|
||||
|
||||
[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
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'varnish'
|
||||
pkgname=varnish
|
||||
version=3.0.3
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static"
|
||||
makedepends="pkg-config pcre-devel readline-devel"
|
||||
|
@ -22,6 +22,7 @@ long_desc="
|
|||
subpackages="libvarnishapi libvarnishapi-devel"
|
||||
conf_files="/etc/varnish/default.vcl"
|
||||
systemd_services="varnish.service on"
|
||||
make_dirs="/var/varnish 750 nobody nogroup"
|
||||
|
||||
post_install() {
|
||||
# systemd reload helper
|
||||
|
|
Loading…
Reference in New Issue