NAME

FCGI::Restarter - Restart FCGI process on the fly

SYNOPSIS

use FCGI::Restarter;
my $Reloader = FCGI::Restarter->new();
$Reloader->set_script($0);
$Reloader->set_watch_file( 
    [
    $0,                         # Look for modification of self
    $INC{ "Web/MyModule.pm"},   # Look for chaneg of some module
    "my config path",           # Look for changes in config
    ] );

while( $Reloader->new_request()) { # Instead of (FCGI::accept() >= 0)
    my $q = CGI->new;
    
    # process request 

}

DESCRIPTION

FCGI::Restarter provide same functionality as FCGI plus it restart self if watch files changed in time.
This additional function especially usefull in development enviroment.      

EXPORT

None by default.

NOTE

This module expected to work in UNIX like enviroment

SEE ALSO

L<FCGI>

AUTHOR

Grishaev Anatoliy, <grian@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Grishaev Anatoliy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.1 or, at your option, any later version of Perl 5 you may have available.