1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/Tools/portbuild/scripts/flushsquid

16 lines
349 B
Bash
Executable File

#!/bin/sh
arch=$(uname -m)
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 stop
/usr/local/etc/rc.d/squid poll
echo "" > ${squid_dir}/cache/swap.state
/usr/local/etc/rc.d/squid start
fi