Summary: | www-server/lighttpd: checkpath call in init script doesn't respect lighttpd configuration | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Corentin Chary (RETIRED) <iksaif> |
Component: | [OLD] Server | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | iksaif, wired |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Corentin Chary (RETIRED)
![]() Not sure if this kind of setup is common to most of us Simply changing the user or the rundir in lighttpd.conf will break, you don't even need to use multiple instances. I presume it would be possible to read the lighttpd.conf file multiple times within the init script and extract the necessary variables. If you can come up with a patch that would be nice otherwise it might take a while to implement it myself Reading lighttpd.conf will be pretty hard, since it's a real language with includes and variables. Also, in the default configuration file as provided by gentoo, lighttpd doesn't even use /var/run/lighttpd/, it uses /var/run/lighttpd.pid I'd suggest removing checkpath completly. (In reply to comment #4) > Reading lighttpd.conf will be pretty hard, since it's a real language with > includes and variables. > > Also, in the default configuration file as provided by gentoo, lighttpd > doesn't even use /var/run/lighttpd/, it uses /var/run/lighttpd.pid > > I'd suggest removing checkpath completly. I object to that. checkpath is there for a reason. To ensure that the directory exists and proper permissions are set. It is better to have it, even if the directory is hard-coded, than not having it at all But, well, as I pointed, /var/run/lighttpd/ is not used in default configuration as shipped by lighttpd or gentoo. Only /var/run/lighttpd.pid is used. Feel free to mark this as WONTFIX or INVALID if you really want to keep checkpath, if this is the case I 'll simply move to /var/run/lighttpd-multi/ :) (In reply to comment #6) > But, well, as I pointed, /var/run/lighttpd/ is not used in default > configuration as shipped by lighttpd or gentoo. Only /var/run/lighttpd.pid > is used. > > Feel free to mark this as WONTFIX or INVALID if you really want to keep > checkpath, if this is the case I 'll simply move to /var/run/lighttpd-multi/ > :) Yeah truth is I don't know where this /var/run/lighttpd/ comes from but (at least on my servers) it seems to be used by lighttpd anyway. Marking this as WONTFIX anyway |