Catalyst::Restarter(3pm) User Contributed Perl Documentation Catalyst::Restarter(3pm)NAME
Catalyst::Restarter - Uses File::ChangeNotify to check for changed files and restart the server
SYNOPSIS
my $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;
DESCRIPTION
This 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.
METHODS
pick_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 ALSO
Catalyst, File::ChangeNotify
AUTHORS
Catalyst Contributors, see Catalyst.pm
COPYRIGHT
This 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)
Check Out this Related Man Page
Catalyst::Plugin::Log::Dispatch(3pm) User Contributed Perl Documentation Catalyst::Plugin::Log::Dispatch(3pm)NAME
Catalyst::Plugin::Log::Dispatch - Log module of Catalyst that uses Log::Dispatch
VERSION
This document describes Catalyst::Plugin::Log::Dispatch version 2.15
SYNOPSIS
package MyApp;
use Catalyst qw/Log::Dispatch/;
configuration in source code
MyApp->config->{ Log::Dispatch } = [
{
class => 'File',
name => 'file',
min_level => 'debug',
filename => MyApp->path_to('debug.log'),
format => '[%p] %m %n',
}];
in myapp.yml
Log::Dispatch:
- class: File
name: file
min_level: debug
filename: __path_to(debug.log)__
mode: append
format: '[%p] %m %n'
If you use Catalyst::Plugin::ConfigLoader, please load this module after Catalyst::Plugin::ConfigLoader.
DESCRIPTION
Catalyst::Plugin::Log::Dispatch is a plugin to use Log::Dispatch from Catalyst.
CONFIGURATION
It is same as the configuration of Log::Dispatch excluding "class" and "format".
class
The class name to Log::Dispatch::* object. Please specify the name just after "Log::Dispatch::" of the class name.
format
It is the same as the format option of Log::Dispatch::Config.
DEPENDENCIES
Catalyst, Log::Dispatch, Log::Dispatch::Config
AUTHOR
Shota Takayama "<shot[at]bindstorm.jp>"
LICENCE AND COPYRIGHT
Copyright (c) 2006, Shota Takayama "<shot[at]bindstorm.jp>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
perl v5.14.2 2012-04-15 Catalyst::Plugin::Log::Dispatch(3pm)
Hi,
Sorry about the hassle...
Does anyone know if the Cisco Catalyst 1700 is stackable, I ckecked in the Cisco home page, bulletins etc. but can't find anything.
Thanks in advance (1 Reply)
Hi...
I have a very wired problem with my redhat4 update 4 server...
Every time i create a file bigger then my physical memory the server kills the process\session that creates the file, and in the "messages" file i see this error:
"Oct 21 15:22:22 optidev kernel: Out of Memory: Killed process... (6 Replies)
Hello.
I'd like to know how to make a simple restarter using cron. I made something like this:
"* * * * * root home/..(full path)/file"
But it doesn't work. How can I do that or how to make restarter of the application in other way? (1 Reply)
All Expert,
I am using Sun OS 5.8 and Perl version 5 in One server and Perl 5.8 in another unix server.
I am able to read a file using fopen function of perl --file size having more then 3 GB of data.(In the machine where Perl 5.8 install)
But when i am running the same perl script --It... (1 Reply)
I have requirement where i need to search for files which start with SALESORDER and PURCHASEORDER. i need to process the files with SALESORDER first and then PURCHASEORDER. If SALESORDER files are not there i dont want to process PURCHASEORDER and i want to come out of script. I have written a code... (4 Replies)
I am having a client/server application which will download files from server. If server has directories, it will create directories/sub directories and then download files. In this process, I observed that number of open files are more than 400 (which is approxmately same as number of dir/subdir... (1 Reply)
I am having a client/server application which will download files from server. If server has directories, it will create directories/sub directories and then download files. In this process, I observed that number of open files are more than 400 (which is approxmately same as number of dir/subdir... (1 Reply)
How can I nest substitutions ? My solution just seems cheap ...
sample data
Cisco Catalyst Operating System Software, Version 235.5(18)
Cisco Catalyst Operating System Software, Version 17.6(7)
Cisco Catalyst Operating System Software, Version 19.6(7)
Cisco Catalyst Operating System... (1 Reply)
Does anyone know the noticable different between Catalyst 2960S 24 GigE PoE 370W 2 x 10G SFP+ LAN Base and Catalyst 2960S 24 GigE PoE 370W 4 x SFP LAN Base ? (0 Replies)