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

From: Joel Bryan Juliano <joelbryan.juliano@dont-contact.us>
Date: Sat, 24 Feb 2007 16:41:16 +0800

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 Sat Feb 24 2007 - 01:41:19 MST

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