NAME
Server::Control::Starman -- Control Starman
VERSION
version 0.18
SYNOPSIS
use Server::Control::Starman;
my $starman = Server::Control::Starman->new(
binary_path => '/usr/local/bin/starman'
options => {
port => 123,
error_log => '/path/to/error.log',
pid_file => '/path/to/starman.pid'
},
);
if ( !$starman->is_running() ) {
$starman->start();
}
DESCRIPTION
Server::Control::Starman is a subclass of Server::Control for Starman processes.
CONSTRUCTOR
In addition to the constructor options described in Server::Control:
- app_psgi
-
Path to app.psgi; required.
- options
-
Options to pass to the starman binary; required. Possible keys include:
listen
,host
,port
,workers
,backlog
,max_requests
,user
,group
,pid
, anderror_log
. Underscores are converted to dashes before passing to starman.--daemonize
and--preload-app
are automatically passed to starman; the only current way to change this is by subclassing and overriding _build_options_string.
This module will determine "error_log" in Server::Control, "pid_file" in Server::Control, and "port" in Server::Control from the options hash.
SEE ALSO
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.