Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119215 - Bug in squid initscrips
Summary: Bug in squid initscrips
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 10:19 UTC by Eero Volotinen
Modified: 2006-01-18 13:48 UTC (History)
0 users

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 Eero Volotinen 2006-01-16 10:19:05 UTC
If squid cannot get hostname, gentoo squid script crashes in init state.

example: 

/etc/init.d/squid start


 * Initializing cache directory: /var/cache/squid
/etc/init.d/squid: line 32:  9752 Aborted                 /usr/sbin/squid -z -F 2>/dev/null
 * Error initializing: /var/cache/squid

This is happening because squid requires visible_hostname hostname to squid.conf if it cannot get reverse name from dns?

Solution: patch squid.conf to add visible_hostname hostname ?
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-01-16 13:35:43 UTC
The default visible_hostname is the machine hostname, case in which squid checks whether this name is resolvable through DNS or not. It wouldn't matter if the replied IP is local or not, neither the fact that it have a proper reverse DNS record or not.

Conclusion: squid default configuration ask from you to have a hostname resolvable through DNS. I think it is a very reasonable request.
Comment 2 Eero Volotinen 2006-01-18 09:59:11 UTC
(In reply to comment #1)
> The default visible_hostname is the machine hostname, case in which squid
> checks whether this name is resolvable through DNS or not. It wouldn't matter
> if the replied IP is local or not, neither the fact that it have a proper
> reverse DNS record or not.
> 
> Conclusion: squid default configuration ask from you to have a hostname
> resolvable through DNS. I think it is a very reasonable request.

Some lan proxies does't have reverse name.

Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-01-18 13:48:25 UTC
The only requirement is to have a _hostname_ resolvable through DNS, not local IPs reverse-resolvable.

However, I've submitted a new init script that disable the DNS test on cache_dir initialization, so next version bump will fix this issue.
Furthermore, the new init script displays cache initialization output in case it fails.