case "$1" in
start)
+ getpids "squid"
+
+ if [ -n "${pidlist}" ]; then
+ echo -e "Squid is already running with Process"\
+ "ID(s) ${pidlist}.${NORMAL}"
+ evaluate_retval
+ exit
+ fi
if [ -e /var/ipfire/proxy/enable -o -e /var/ipfire/proxy/enable_blue ]; then
boot_mesg "Starting Squid Proxy Server..."
loadproc /usr/sbin/squid -D -z >/dev/null 2>&1
$0 start
;;
+ reconfigure)
+ /usr/sbin/squid -k reconfigure
+ ;;
+
status)
statusproc /usr/sbin/squid
statusproc /usr/lib/squid/unlinkd
sleep 1
$0 start
;;
+ setperms)
+ chown -R nobody.squid /var/updatecache/
+ ;;
*)
echo "Usage: $0 {start|stop|restart|status|flush}"