Re: [squid-users] On/off switch for squid?

From: SQUID Mailing List <list@dont-contact.us>
Date: Mon, 26 Feb 2007 15:04:48 +1100 (EST)

I think what you are saying is for Squid to re-read your configuration
file after a change has been made. If this is the case you can simply do:

service squid reload (or restart)
or
/etc/init.d/squid reload (or restart)

> On 2/24/07, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
>> lör 2007-02-24 klockan 09:51 +0800 skrev Joel Bryan Juliano:
>>
>> > Is there a way to turn off and on squid by just editing the
>> > configuration files?
>>
>> No, but by stopping/starting the service.
>>
>> stop: /usr/local/sbin/squid -k shutdown
>>
>> start: /usr/local/sbin/squid
>>
>> or alternatively depending on OS integration being done
>>
>> service squid stop
>> service squid start
>>
>> /etc/init.d/squid stop
>> /etc/init.d/squid start
>>
>> or similar..
>>
>> Regards
>> Henrik
>>
>>
>
> I'm trying to do this because I have made a simple GUI for configuring
> squid on the system, there is a checkbutton to enable/disable squid
> and I'm looking for ways on how to hook with it. currently my approach
> is moving /etc/init.d/squid to /etc/squid-gui/squid.daemon which is
> very hackish. There must be a better way.
>
>
> --
> "I use to fuel my car with water, now I switched back to gasoline
> because my cigarette lighter doesn't work" - People who use Linux but
> switched back to Windows.
>
Received on Sun Feb 25 2007 - 21:04:53 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST