Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3850

Summary: Squid fails to start
Product: Gentoo Linux Reporter: Jeff <mrjre>
Component: [OLD] ServerAssignee: Ryan Phillips (RETIRED) <rphillips>
Status: RESOLVED FIXED    
Severity: trivial CC: rphillips
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeff 2002-06-18 12:04:36 UTC
I build squid on my gentoo machine and try starting it and it gives me a signal 
6 error.  I checked the log files and found it was because cache directories 
werent created...supposed to be done under /var/cache/squid, I created the 
directories based on my mandrake install in the /var/cache/squid directory and 
then started the proxy server successfully.  It is a trivial issue but I think 
it should be done in the install script.  If it is not done that way for a 
specific reason please let me know.
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-06-18 19:06:44 UTC
I found the following code in the ebuild... shouldn't this work?

pkg_postinst() {
    # This helps if you had it installed, but never _ran_ it.
    install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid
    install -m0755 -o squid -g squid -d ${ROOT}/var/log/squid
}
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-06-21 16:57:33 UTC
I just emerged squid-2.4.6-r1.ebuild and it worked fine... It created all the
directories it needed.