NAME
App::Framework::Daemon - Daemonize an application
SYNOPSIS
use App::Framework qw/Daemon/ ;
DESCRIPTION
App::Framework personality that provides a daemonized program (using Net::Server::Daemonize)
DIAGNOSTICS
Setting the debug flag to level 1 prints out (to STDOUT) some debug messages, setting it to level 2 prints out more verbose messages.
AUTHOR
Steve Price <sdprice at cpan.org>
BUGS
None that I know of!
INTERFACE
App::Framework::Daemon->new([%args])
-
Create a new App::Framework::Daemon.
The %args are specified as they would be in the set method, for example:
'mmap_handler' => $mmap_handler
The full list of possible arguments are :
'fields' => Either ARRAY list of valid field names, or HASH of field names with default values
CLASS METHODS
OBJECT METHODS
App::Framework::Modules::Daemon->options([$options_aref])
-
Adds some extra script-related default options.
Set options based on the ARRAY ref specification.
Each entry in the ARRAY is an ARRAY ref containing:
[ <option spec>, <option summary>, <option description> ]
Where the <option spec> is in the format used by Getopt::Long
NOTE: The <option spec> also determines the name of the field used to store the option value/flag. If alternatives are specified, then the first one is used. Alternatively, if any alternative is marked with quotes, then that is the one used.
Examples:
dir|d|directory - Field name is 'dir' dir|d|'directory' - Field name is 'directory'
When no arguments are specifed, returns the hash of options/values
<App::Framework::Modules::Daemon-
daemon_run()>>-
Daemonize then run the application's run subroutine in side a loop.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 158:
=over without closing =back