Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Start the Squid web proxy as a service at start up' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Start the Squid web proxy as a service at start up
Authored by: nofutureuk on Mar 14, '03 12:25:21PM

what you could also do (I use this for my dial-up connections with the notebook), is to start squid only on demand if you have an online connection.
to do that, you need to place the following scripts into /etc/ppp/:
/sw/sbin/squid -z
/sw/sbin/squid -D
/sw/sbin/squid -k shutdown


[ Reply to This | # ]
Authored by: nednieuws on Mar 21, '03 07:01:28AM

Thank you.

In my StartupItem I've disabled the DNS tests on startup, but judging from the debug output squid still expects to see a DNS somewhere, or read it from /etc/resolv.conf. That file doesn't exist until a connection is established, so no joy.

Your solution works perfectly for all of us that live in the boonies (eg. without ADSL), so now I can have a cache for all the browsers I use.

Regards, Charles.

[ Reply to This | # ]