Ubic::Service::ServerStarter - Helper for running psgi applications with ubic and plackup
version 0.001
use Ubic::Service::ServerStarter; return Ubic::Service::ServerStarter->new({ cmd => [ 'starman', '--preload-app', '--env' => 'development', '--workers' => 5, ], args => { interval => 5, port => 5003, signal-on-hup => 'QUIT', signal-on-term => 'QUIT', }, ubic_log => '/var/log/app/ubic.log', stdout => '/var/log/app/stdout.log', stderr => '/var/log/app/stderr.log', user => "www-data", });
This service is a common ubic wrap for psgi applications. It uses plackup for running these applications.
Ubic::Service::ServerStarter - ubic service class for running commands with Server::Starter
Arguments to send to start_server.
ArrayRef of command + options to run with server starter. Everything passed here will go be put after the -- in the start_server command:
--
start_server
start_server [ args ] -- [ cmd ]
This argument is required becasue we have to have something to run!
Coderef to special function, that will check status of your application.
Path to ubic log.
Path to stdout log of plackup.
Path to stderr log of plackup.
User under which plackup will be started.
Group under which plackup will be started. Default is all user groups.
Change working directory before starting a daemon.
Pidfile for Ubic::Daemon module.
Ubic::Daemon
If not specified, it will be derived from service's name or from app_name, if provided.
Pidfile is:
pidfile option value, if provided;
/tmp/APP_NAME.pid, where APP_NAME is app_name option value, if it's provided;
/tmp/APP_NAME.pid
/tmp/SERVICE_NAME.pid, where SERVICE_NAME is service's full name.
/tmp/SERVICE_NAME.pid
pidfile()
Get pidfile name.
bin()
Get command-line with all arguments in the arrayref form.
William Wolf <throughnothing@gmail.com>
William Wolf has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.
3 POD Errors
The following errors were encountered while parsing the POD:
Expected '=item *'
You forgot a '=back' before '=head1'
To install Ubic::Service::ServerStarter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic::Service::ServerStarter
CPAN shell
perl -MCPAN -e shell install Ubic::Service::ServerStarter
For more information on module installation, please visit the detailed CPAN module installation guide.