Re: [squid-users] Squid Shutdown script

From: Squid Support (Henrik Nordstrom) <hno@dont-contact.us>
Date: Sat, 11 May 2002 12:10:12 +0200

You need to sleep a bit longer if there is active users of your Squid.

Squid by default waits for up to 30 seconds for current requests to
finish when shutting down.

See your cache.log when rebooting.

Regards
Henrik

On Saturday 11 May 2002 02:41, Mike Diggins wrote:
> 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

-- 
MARA Systems AB, Giving you basic free Squid support
Your source of advanced web reverse proxying solutions
http://www.marasystems.com/producs/
Received on Sat May 11 2002 - 04:19:05 MDT

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