Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3850 - Squid fails to start
Summary: Squid fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-18 12:04 UTC by Jeff
Modified: 2003-02-04 19:42 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 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.