I think Apache2 :: Reload will do a little what you are looking for. However, be sure to remove this entire implementation as soon as you are ready to host this application.
Monitoring all modules in% INC
To monitor and reload all modules in% INC at the beginning of request processing, simply add the following configuration to your httpd.conf:
PerlModule Apache2::Reload PerlInitHandler Apache2::Reload
When working with connection filters and protocol modules, Apache2 :: Reload should be started at the pre_connection stage:
PerlPreConnectionHandler Apache2::Reload
Register modules implicitly
To reload only modules registered in Apache2 :: Reload, add the following to httpd.conf:
PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off
Then any modules with a line:
use Apache2::Reload;
Will reboot when they change.
Visit this documentation page for information . Hope this helps.
David
source share