/usr/share/perl5/Plack/Handler/Starman.pm is in starman 0.4014-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | package Plack::Handler::Starman;
use strict;
use Starman::Server;
sub new {
my $class = shift;
bless { @_ }, $class;
}
sub run {
my($self, $app) = @_;
if ($ENV{SERVER_STARTER_PORT}) {
require Net::Server::SS::PreFork;
@Starman::Server::ISA = qw(Net::Server::SS::PreFork); # Yikes.
}
my %nsa;
while (my($key, $value) = each %$self) {
$key =~ s/^net_server_// or next;
$nsa{$key} = $value;
}
$self->{net_server_args} = \%nsa if %nsa;
Starman::Server->new->run($app, {%$self});
}
1;
__END__
=head1 NAME
Plack::Handler::Starman - Plack adapter for Starman
=head1 SYNOPSIS
plackup -s Starman
=head1 DESCRIPTION
This handler exists for the C<plackup> compatibility. Essentially,
C<plackup -s Starman> is equivalent to C<starman --preload-app>,
because the C<starman> executable delay loads the application by
default. See L<starman> for more details.
=head1 AUTHOR
Tatsuhiko Miyagawa
=head1 SEE ALSO
L<Starman>
=cut
|