packages: varnish/reload-vcl - pldize
glen
glen at pld-linux.org
Thu Jan 7 16:19:03 CET 2010
Author: glen Date: Thu Jan 7 15:19:03 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- pldize
---- Files affected:
packages/varnish:
reload-vcl (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/varnish/reload-vcl
diff -u packages/varnish/reload-vcl:1.1 packages/varnish/reload-vcl:1.2
--- packages/varnish/reload-vcl:1.1 Thu Jan 7 16:14:11 2010
+++ packages/varnish/reload-vcl Thu Jan 7 16:18:58 2010
@@ -1,17 +1,18 @@
#!/bin/sh
# reload-varnish: Script to reload varnishd from VCL defined in
-# /etc/default/varnish.
+# /etc/sysconfig/varnish.
#
# Stig Sandbeck Mathisen <ssm at debian.org>
+# Elan Ruusamäe <glen at pld-linux.org>
# Settings
-defaults=/etc/default/varnish
+defaults=/etc/sysconfig/varnish
# Paths
varnishadm=/usr/bin/varnishadm
date=/bin/date
-tempfile=/bin/tempfile
+mktemp=/bin/mktemp
# Messages
# msg_no_varnishadm: varnishadm
@@ -78,6 +79,9 @@
esac
done
+vcl_file=${VARNISH_VCL_CONF}
+mgmt_interface=${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT}
+
# Parse $DAEMON_OPTS (options must be kept in sync with varnishd).
# Extract the -f and the -T option, and (try to) ensure that the
# management interface is on the form hostname:address
@@ -118,7 +122,7 @@
exit 1
fi
-logfile=$($tempfile -n /tmp/$vcl_label)
+logfile=$($mktemp -t $vcl_labelXXXXXX)
# Compile and maybe reload
if $varnishadm -T $mgmt_interface vcl.load $vcl_label $vcl_file
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/varnish/reload-vcl?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list