diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2005-12-11 04:41:38 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2005-12-11 04:41:38 +0000 |
commit | 4a1dd67a5995462c9aca9aa68805950e8395ee3f (patch) | |
tree | 42c0007bf4b6edd7c7541de06cfff420b82e931b /Tools | |
parent | dc26cbf0be7040f4f84892b4b43dd86e2bebef3a (diff) | |
download | ports-4a1dd67a5995462c9aca9aa68805950e8395ee3f.tar.gz ports-4a1dd67a5995462c9aca9aa68805950e8395ee3f.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/flushsquid | 15 |
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 |