[pkg-lighttpd] Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

Stefan Bühler lighttpd at stbuehler.de
Sun Mar 7 13:45:05 UTC 2010


Hi,

> "socket" => "/tmp/php-cgi.socket" + var.PID

this is a really stupid idea: that way you just keep spawning new backends 
with every lighttpd restart, and the old backends will still be running too.

Recommended way is to use runit or daemontools/supervise with spawn-fcgi, that 
way you can restart php without lighttpd (and the other way round), and have 
php run with a different user (always a good thing for security).

I'd love to have some useful debug info on this, so if you can reproduce it 
and get a strace of it (lighttpd *and* php), that would be very nice.

The last strace someone had showed that lighttpd did the correct kill(...) 
call (there was no strace of the corresponding php backend).





More information about the pkg-lighttpd-maintainers mailing list