summaryrefslogtreecommitdiffstats
path: root/Tools/portbuild/scripts/flushsquid
blob: a61bd7e332f745758346c60f10e23400c5344d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
OpenPOWER on IntegriCloud