-
-
10 Dec 2012 17:57:27 UTC
- Distribution: Ubic-Service-Starman
- Module version: 0.004
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (196 / 0 / 0)
- Kwalitee
Bus factor: 0- 100.00% Coverage
- License: unrestricted
- Activity
24 month- Tools
- Download (7.49KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Ubic::Service::Starman - Helper for running psgi applications with Starman
VERSION
version 0.004
SYNOPSIS
use Ubic::Service::Starman; return Ubic::Service::Starman->new({ server_args => { listen => "/tmp/app.sock", }, app => "/var/www/app.psgi", status => sub { ... }, port => 4444, ubic_log => '/var/log/app/ubic.log', stdout => '/var/log/app/stdout.log', stderr => '/var/log/app/stderr.log', user => "www-data", });
DESCRIPTION
This service is a common ubic wrap for psgi applications. It uses starman for running these applications.
It is a very simple wrapper around Ubic::Service::Plack that uses starman as the binary instead of plackup. It defaults the
server
argument to 'Starman' so you don't have to pass it in, and adds the ability to reload (which will gracefully restart your Starman workers without any connections lost) usingubic reload service_name
.NAME
Ubic::Service::Starman - ubic service base class for psgi applications
METHODS
- reload
-
Reload adds the ability to send a
HUP
signal to the Starman server to gracefully reload your app and all the workers without losing any connections.
AUTHOR
William Wolf <throughnothing@gmail.com>
COPYRIGHT AND LICENSE
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.
Module Install Instructions
To install Ubic::Service::Starman, copy and paste the appropriate command in to your terminal.
cpanm Ubic::Service::Starman
perl -MCPAN -e shell install Ubic::Service::Starman
For more information on module installation, please visit the detailed CPAN module installation guide.