Jim Christy wrote:
But often it runs so quick that squid doesn't get chance to shutdown before the script tries to restart it. Any suggestions? Thanks Jim
You could use ps (grepped appropriately) in a loop, with a sleep at the end of each iteration to check if squid's shut down yet. If other people have shell on the box you might want to make sure you get the full path in the ps, too, to stop /home/luser/squid from making your script wait forever.