Actions
Bug #1019
closedLighttpd unlinks pid file at the wrong time during a graceful restart
Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
If lighttpd is set to write a pid file and you do a graceful shutdown,
immediately relaunching a new lighttpd to achieve a graceful restart, the
new lighttpd overwrites the old lighttpd pidfile... but then as the old
lighttpd exits, it unlinks the new lighttpd's pidfile!
One possible fix is to unlink the pid file as soon as the socket is unbound
rather than only as lighttpd finally exits. I've attached a patch which
implements this and seems to fix the problem completely.
Files
Updated by stbuehler about 17 years ago
- Status changed from New to Fixed
- Resolution set to fixed
Applied in r1656
Actions
Also available in: Atom