Bug 48369

Summary: add option to automatically restart if a script is modified
Product: Apache httpd-2 Reporter: Noah Sheppard <nlshep>
Component: mod_fcgidAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   

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.