Re: Anybody has a script to restart squid?

From: Bob Izenberg <bei@dont-contact.us>
Date: Mon, 10 Feb 1997 08:06:24 -0600 (CST)

Gareth Blades wrote:

# if [ \! -f "/var/run/squid.pid" ]; then
# /usr/local/squid/bin/squid -D &
# fi

This might be, ahem, overkill:

# if [ -s "/var/run/squid.pid" ]; then
# kill -0 `cat /var/run/squid.pid` > /dev/null 2>&1 || /usr/local/squid/bin/squid -D &
# fi

Bob

-- 
 ===============  "We make the Internet work."  ===============
   bob izenberg                     phone: +1 (512) 306-0700
   sig.net network operations                    bei@sig.net
 ==============================================================
Received on Mon Feb 10 1997 - 06:16:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:25 MST