Koozali.org: home of the SME Server

how to reset squid proxy

Offline sedangbelajar

  • **
  • 30
  • +0/-0
how to reset squid proxy
« on: October 08, 2007, 01:56:25 AM »
anybody know how to reset squid proxy in sme server 7.2..
in the main control i can not find some tips or tricks, when i use "clarkconnect" there was one button to reset proxy..
help me please

regards

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: how to reset squid proxy
« Reply #1 on: October 08, 2007, 07:06:04 AM »
Do you mean you want to re-start the squid service or do you want to flush out the cache?
In life, you must either "Push, Pull or Get out of the way!"

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: how to reset squid proxy
« Reply #2 on: October 08, 2007, 08:48:10 AM »
Do you mean you want to re-start the squid service or do you want to flush out the cache?

i mean flush out the chace, because sometimes error in my connection from the internet provider..make me crazy.

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
Re: how to reset squid proxy
« Reply #3 on: October 08, 2007, 08:54:08 AM »
Try this:

( the last three posts are what you need to look at)

http://forums.contribs.org/index.php?topic=10489.0
Life's tragedy is that we get old too soon, and wise too late...

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: how to reset squid proxy
« Reply #4 on: October 08, 2007, 09:05:06 AM »
Try this:

( the last three posts are what you need to look at)

http://forums.contribs.org/index.php?topic=10489.0

two option to clear squid ?

/etc/init.d/squid stop
rm /var/spool/suid
/etc/init.d/squid start

or

First of all, you must stop Squid of course. You can use the command:
   squid -k shutdown

The fastest way to restart with an entirely clean cache is to over write the swap.state file. Note, you can not just remove the swap.state file, or truncate it to zero size. Instead, you should put just one byte of garbage there. For example:

   echo "" > /var/spool/squid/swap.state

Restart squid:

   squid


Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
Re: how to reset squid proxy
« Reply #5 on: October 08, 2007, 09:10:08 AM »
yep, just use the second

Quote
echo "" > /var/spool/squid/swap.state
Life's tragedy is that we get old too soon, and wise too late...

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: how to reset squid proxy
« Reply #6 on: October 09, 2007, 03:41:36 PM »
yep, just use the second


thank you very much

 :-P

Offline arnie25

  • *
  • 16
  • +0/-0
Re: how to reset squid proxy
« Reply #7 on: October 09, 2007, 07:34:31 PM »
...