Query: catalyst::restarter
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Catalyst::Restarter(3pm) User Contributed Perl Documentation Catalyst::Restarter(3pm)NAMECatalyst::Restarter - Uses File::ChangeNotify to check for changed files and restart the serverSYNOPSISmy $class = Catalyst::Restarter->pick_subclass; my $restarter = $class->new( directories => '/path/to/MyApp', regex => '.yml$|.yaml$|.conf|.pm$', start_sub => sub { ... } ); $restarter->run_and_watch;DESCRIPTIONThis is the base class for all restarters, and it also provide functionality for picking an appropriate restarter subclass for a given platform. This class uses File::ChangeNotify to watch one or more directories of files and restart the Catalyst server when any of those files changes.METHODSpick_subclass Returns the name of an appropriate subclass for the given platform. new ( start_sub => sub { ... }, ... ) This method creates a new restarter object, but should be called on a subclass, not this class. The "start_sub" argument is required. This is a subroutine reference that can be used to start the Catalyst server. run_and_watch This method forks, starts the server in a child process, and then watched for changed files in the parent. When files change, it kills the child, forks again, and starts a new server.SEE ALSOCatalyst, File::ChangeNotifyAUTHORSCatalyst Contributors, see Catalyst.pmCOPYRIGHTThis program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-19 Catalyst::Restarter(3pm)
Related Man Pages |
---|
catalyst::manual(3pm) - debian |
catalyst::manual::internals(3pm) - debian |
catalyst::model::dbi(3pm) - debian |
catalyst::restarter(3pm) - debian |
catalyst::view::petal(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Cisco Catalyst 1700 |
Problem with creating big files |
Cronjob Crontab Cron Restarter Help |
Unix server restart automatically |
WS-C2960S-24PD-L vs WS-C2960S-24PS-L |