Fork me on GitHub

Index


Name

App::Doh::Daemon - Background process control for the documentation server

Synopsis

   use App::Doh::Daemon;

   exit App::Doh::Daemon->new_with_options( appclass => 'App::Doh' )->run;

Description

Manages the documentation web server process. The command line wrapper for this class provides a SYSV initialisation script

Configuration and Environment

Defines the following attributes;

app

The name of the PSGI file in the bin directory

config_class

Defaults to App::Doh::Config the name of the applications configuration class

port

The port number for the server to listen on

server

The name of the Plack engine used by the server

workers

The number of worker processes to start in pre-forking servers. Defaults to 5

Subroutines/Methods

Defines the following methods;

BUILDARGS

Constructor signature processing

get_init_file - Dump SYSV initialisation script to stdout

Dump the SYSV initialisation script to stdout

restart - Restart the server

Restart the server

run - Call the requested method

Validates some Daemon::Control attribute values and then calls the same method in the parent class which, in turn, calls the requested method in a try / catch block

show_warnings - Show server warnings

Show server warnings

start - Start the server

Start the server

status - Show the current server status

Show the current server status

stop - Stop the server

Stop the server

Diagnostics

None

Dependencies

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>