Search squid archive

Re: automate flushing of cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux