On 2/24/07, Henrik Nordstrom <[EMAIL PROTECTED]> 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.