[squid-users] Squid Shutdown script

From: Mike Diggins <diggins@dont-contact.us>
Date: Fri, 10 May 2002 20:41:41 -0400 (EDT)

I don't think my Squid is being shutdown properly during a system
shutdown. I say this because my caches are always "dirty" after a system
restart (init 6). I use the following script to start and stop squid but
I'm not sure why my Solaris system doesn't run it (I assume with a stop
parameter) on shutdown. Can anyone help?

#!/bin/sh
pid_file=/usr/local/squid/logs/squid.pid
squid_daemon=/usr/local/squid/bin/squid
squid_conf=/usr/local/squid/etc/squid.conf

case "$1" in
start)
        echo "Starting Squid "
        ${squid_daemon}
        echo
        ;;
stop)
        echo "Stopping Squid..sleeping for 10 seconds "
        ${squid_daemon} -k shutdown
        sleep 10
        echo
        ;;
*)
        echo "Usage: $0 {start|stop}"
        exit 1
        ;;
esac
Received on Fri May 10 2002 - 18:41:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:04 MST