Summary: | net-proxy/squid with workers=2 wants access to /var/run/squid or /run/squid for coordinator.ipc kid-N.ipc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gleb <glebiuskv> |
Component: | [OLD] Server | Assignee: | Eray Aslan <eras> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | glebiuskv, net-proxy+disabled |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Gleb
2013-12-30 00:36:23 UTC
Created attachment 366512 [details]
emerge --info
That's odd. ~/portage/net-proxy/squid-3.3.11/work/squid-3.3.11 # fgrep -r DEFAULT_STATEDIR . ./src/ipc/Makefile.am:DEFS += -DDEFAULT_STATEDIR=\"/run/squid\" ./src/ipc/Makefile.in:DEFS = @DEFS@ -DDEFAULT_STATEDIR=\"/run/squid\" ./src/ipc/mem/Segment.cc:const char *Ipc::Mem::Segment::BasePath = DEFAULT_STATEDIR; ./src/ipc/Port.cc:const char Ipc::coordinatorAddr[] = DEFAULT_STATEDIR "/coordinator.ipc"; ./src/ipc/Port.cc:const char Ipc::strandAddrPfx[] = DEFAULT_STATEDIR "/kid"; (In reply to Jeroen Roovers from comment #2) > That's odd. Do you need some additional info? I try to look in my src when emerging. # cd /var/tmp/portage/net-proxy/squid-3.3.11/work/squid-3.3.11/ fgrep -r DEFAULT_STATEDIR Output was like yours, but I had one more line: src/ipc/Makefile:DEFS = -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/run/squid\" Ok, firstly it looks like variable DEFAULT_STATEDIR is not set. # env| grep DEFAULT_STATEDIR has no output. When I run DEFAULT_STATEDIR=\"/run/squid\" rc-service squid restart it creates /var/run/squid and /run/squid folders. But they belongs to root user and can`t be written by user squid. And squid maybe needs access not to /var/run/squid/ but to /run/squid/, because /var/run/ is a symlink to /run and I cant detect where squid go. Should be fixed in net-proxy/squid-3.4.2. Please let me know if you still have a problem. (In reply to Eray Aslan from comment #6) > Should be fixed in net-proxy/squid-3.4.2. Please let me know if you still > have a problem. Yes, it works fine. Thank you! |