Restarting fastcgidispatch without losing current sessions
Describes a method to stop the fastcgidispatch process that leaves the sessions alive and untouched.
kill -9 pid
In the example command, the "pid" is the process id of the running dispatcher. The command stops the process yet the sessions remain alive and untouched. When the dispatcher is restarted, the sessions continue to be active.
The fastcgidispatcher can be managed via the Linux®
service commands, such as service fastcgidispatch restart
, etc.
Once the web server restarts the dispatcher, the dispatcher uses the session table to reconnect to the various proxies. The applications are still maintained by proxies, are still running, and once the dispatcher is relaunched, the user can continue his or her work.
CTRL+C or sending SIGTERM
In contrast to using the kill -9 pid
method, the effect of
pressing CTRL+C or sending SIGTERM is to stop the standalone dispatcher, and in both cases the
dispatcher will request all proxies to stop. The FastCGI dispatcher will stop sessions on pressing
CTRL+C as well if started in standalone mode - but not on SIGTERM.