Bug 48369 - add option to automatically restart if a script is modified
Summary: add option to automatically restart if a script is modified
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_fcgid (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2009-12-10 14:11 UTC by Noah Sheppard
Modified: 2009-12-10 14:11 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Noah Sheppard 2009-12-10 14:11:25 UTC
The original mod_fastcgi, on which mod_fcgid is based (if I understand my history correctly), has an option (named autoUpdate, which is a flag to to the FastCgiConfig) which causes it to check the mtime of a script each time that script is requested, and restart the process handling that script if the script has been modified since the handler process was started.  mod_fcgid does not have such capability, but it would be very useful in a shared hosting environment for development, as our users do not have access to the server to kill processes.

Various workarounds are possible but not desirable because:
-setting DefaultMinClassProcessCount to 0 and letting the script idle timeout leads to lots of sitting and waiting
-setting very low MaxRequestsPerProcess, IdleTimeout, or ProcessLifetime results in inefficient, needless stopping and starting

If such functionality is not in the works I __might__ be able to write a patch to do this, if there is a chance it would be accepted.

Thank you.