Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66177 - Dansguardian fails to start on boot when used as front-end to squid.
Summary: Dansguardian fails to start on boot when used as front-end to squid.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
: 83407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-02 17:42 UTC by Duane Healing
Modified: 2005-02-26 14:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duane Healing 2004-10-02 17:42:05 UTC
When Dansguardian is configured to use squid, running on the same machine, as another proxy behind it, it fails to start on boot because squid has not yet started.

Reproducible: Always
Steps to Reproduce:
1. Emerge dansguardian
2. Set "proxyip" and "proxyport" to point to the squid proxy running on the same machine.
3. "rc-update add dansguardian default"
4. reboot
Actual Results:  
dansguardian fails to start on reboot because it's attempting to connect to a 
squid that isn't running yet. 

Expected Results:  
It should wait to start until after squid is running and then it will start 
successfully. 

To fix it I put a "after squid" in the depend() function of the dansguardian 
init script.
Comment 1 Jesper aka XyborX 2004-12-22 02:11:47 UTC
I can confirm this bug. I solved it by putting "provide proxy" in squid's init script, and "need net proxy" in dansguardian's. Since dansguardian can use other proxies than squid, I consider this a better approach than "after squid", although it requires all proxy servers init script to have "provide proxy" for this to be useful. But it has to start somewhere, right? :)
Comment 2 Eric Pretorious 2005-01-03 21:26:24 UTC
I was able to correct this behavior by adding 'squid' to /etc/init.d/dansguardian:

depend() {
        need net squid
}
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-02-25 14:30:22 UTC
fixed in 2.8.0.4
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-02-26 14:22:55 UTC
*** Bug 83407 has been marked as a duplicate of this bug. ***