In /etc/init.d/lighttpd, there is: checkpath -d -q -m 0750 -o lighttpd:lighttpd /var/run/lighttpd/ The issue is that I use multiple instance of lighttpd (ln -s /etc/init.d/lighttpd /etc/init.d/lighttpd.foo) with different users and different directories under /var/run/lighttpd/ Since there is no real way to parse lighttpd configuration in the init script, we could at least define LIGHTTPD_RUNDIR/USER/GROUP variables in /etc/conf.d/lighttpd (but this should be synced with lighttpd configuration by the user). I think it's also acceptable to drop this call, maybe when SVCNAME is not lighttpd ? Reproducible: Always
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