Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287941 - Change /etc/init.d/squid to allow multiple squids
Summary: Change /etc/init.d/squid to allow multiple squids
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 19:35 UTC by Pieter De Wit
Modified: 2009-11-01 19:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed squid init script (squid,2.50 KB, text/plain)
2009-10-22 22:51 UTC, Pieter De Wit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter De Wit 2009-10-06 19:35:09 UTC
I would like to pose a suggestion that /etc/init.d/squid "behaves" just like net.lo where by it looks at the script name to allow a user to run multiple squid's. I know that the squid devs are working on a multi-threaded squid and the likes, but I can see that multiple copies of squid is going to be quite popular.

I see that /etc/init.d/squid is the master copy (using /etc/squid/squid.conf etc) but then, other copies are symlinked to /etc/init.d/squid e.g. /etc/init.d/squid_adsl1 and /etc/init.d/squid_adsl2

Using this, the init script will then load /etc/squid/squid_adsl1.conf and squid_adsl2.conf (it will be upto those configs to say where the cache dir is and the log files)

I will be looking into this sometime today and will send my hacked version of /etc/init.d/squid - just thought I would get the ball rolling and maybe some comments from everyone

Reproducible: Always

Steps to Reproduce:
1. n/a
2.
3.

Actual Results:  
n/a

Expected Results:  
n/a

n/a
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2009-10-22 21:45:08 UTC
Well, do you have a script proposal or not?
Comment 2 Pieter De Wit 2009-10-22 22:51:05 UTC
Created attachment 207947 [details]
Proposed squid init script

Seems to work ok for me, but I am no init script creator :)
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2009-10-25 08:36:19 UTC
Fixed in cvs w/o rev bumps.
Comment 4 Pieter De Wit 2009-11-01 19:33:33 UTC
Hi Alin,

Thanks for this - I saw the new files in my sync today and I will test them out :)

Cheers,

Pieter