aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2005-12-11 04:41:38 +0000
committerKris Kennaway <kris@FreeBSD.org>2005-12-11 04:41:38 +0000
commit4a1dd67a5995462c9aca9aa68805950e8395ee3f (patch)
tree42c0007bf4b6edd7c7541de06cfff420b82e931b /Tools
parentdc26cbf0be7040f4f84892b4b43dd86e2bebef3a (diff)
downloadports-4a1dd67a5995462c9aca9aa68805950e8395ee3f.tar.gz
ports-4a1dd67a5995462c9aca9aa68805950e8395ee3f.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/flushsquid15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/flushsquid b/Tools/portbuild/scripts/flushsquid
new file mode 100755
index 000000000000..a61bd7e332f7
--- /dev/null
+++ b/Tools/portbuild/scripts/flushsquid
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+arch=$(cat /etc/arch)
+pb=/var/portbuild
+. ${pb}/${arch}/portbuild.conf
+
+host=$(hostname)
+test -f ${pb}/${arch}/portbuild.${host} && . ${pb}/${arch}/portbuild.${host}
+
+if [ ! -z "${squid_dir}" ] ; then
+ /usr/local/etc/rc.d/squid.sh stop
+ /usr/local/etc/rc.d/squid.sh poll
+ echo "" > ${squid_dir}/cache/swap.state
+ /usr/local/etc/rc.d/squid.sh start
+fi