Project

General

Profile

Actions

Bug #300

closed

fastcgi pid file rotation for graceful restart

Added by Anonymous over 18 years ago. Updated over 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

Graceful restart does not currently work with FastCGI (PHP, others too?). When the new lighttpd process starts, it sees the socket files for the existing FastCGI processes and uses them. When the old lighttpd process dies, the FastCGI processes go with it, leaving the new lighttpd running alone.

A simple fix would be to have the lighttpd pid available as a configuration variable (e.g. var.pid) for replacement as such:

fastcgi.server = (
...
"socket" => "/tmp/php-fastcgi-" + pid + ".socket",
...
)

Our workaround at present is to emulate this behavior using a timestamp that's manually updated in the configuration file at each restart. With this workaround, graceful restart works great :).

Thanks,
James

-- jbyers

Actions #1

Updated by jan over 18 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in svn :)

I forgot the pull this changeset before the release of 1.4.4. Now you have to wait for 1.4.5 :)

Actions

Also available in: Atom