Result:
found 100 distributions and 208 files matching your query ! ( run in 0.720 )


Dancer-Plugin-RPC-RESTISH

 view release on metacpan or  search on metacpan

example/bin/example.pl  view on Meta::CPAN

Daemon::Control->new(
    {
        name => $APP,
        path => $APP_DIR, #abs_path($0),

        program      => "$APP_DIR/local/bin/starman",
        program_args => [
            '-l', "0.0.0.0:$PORT",
            '--workers', '1',        # 1 worker for the in-memory db
            "$APP_DIR/bin/app.psgi",
        ],

 view all matches for this distribution


Dancer-Plugin-RPC

 view release on metacpan or  search on metacpan

example/bin/example.pl  view on Meta::CPAN

Daemon::Control->new(
    {
        name => $APP,
        path => abs_path($0),

        program      => "$APP_DIR/local/bin/starman",
        program_args => [
            '-l', "0.0.0.0:$PORT",
            '--workers', '2',
            'bin/app.psgi'
        ],

 view all matches for this distribution


Dancer2-Plugin-RPC-RESTISH

 view release on metacpan or  search on metacpan

example/bin/example.pl  view on Meta::CPAN

Daemon::Control->new(
    {
        name => $APP,
        path => $APP_DIR, #abs_path($0),

        program      => "$APP_DIR/local/bin/starman",
        program_args => [
            '-l', "0.0.0.0:$PORT",
            '--workers', '1',        # 1 worker for the in-memory db
            "$APP_DIR/bin/app.psgi",
        ],

 view all matches for this distribution


Dancer2-Plugin-RPC

 view release on metacpan or  search on metacpan

example/bin/example.pl  view on Meta::CPAN

Daemon::Control->new(
    {
        name => $APP,
        path => abs_path($0),

        program      => "$APP_DIR/local/bin/starman",
        program_args => [
            '-l', "0.0.0.0:$PORT",
            '--workers', '2',
            'bin/app.psgi',
        ],

 view all matches for this distribution



Data-Password-zxcvbn

 view release on metacpan or  search on metacpan

lib/Data/Password/zxcvbn/RankedDictionaries/Common.pm  view on Meta::CPAN

    'starlet' => 16277,
    'starlight' => 2606,
    'starlight1' => 19740,
    'starling' => 29942,
    'starlite' => 16345,
    'starman' => 11741,
    'starocean' => 22011,
    'starr' => 20705,
    'starry' => 13038,
    'stars' => 3784,
    'stars1' => 13346,

 view all matches for this distribution


Developer-Dashboard

 view release on metacpan or  search on metacpan

lib/Developer/Dashboard.pm  view on Meta::CPAN

prints the final lifecycle summary as a terminal table by default or JSON with
C<-o json>; on an interactive terminal it also prints the full stop task board
on C<stderr> before work starts so each shutdown step becomes visible instead
of silent waiting. The shutdown path now also follows the saved managed
listener port back to the real listener pid when the live web process has
renamed itself into a C<starman master> shape, so minimal Docker runs still
stop the actual serving process instead of leaving the listener behind.
Managed collector stop and restart flows also wait for the previous loop to
really die before accepting a replacement, so a slow shutdown does not leave a
stale collector process rewriting loop state while the next restart is proving
the new pid.

lib/Developer/Dashboard.pm  view on Meta::CPAN

by default or JSON with C<-o json>, and only reports success after the
replacement collector loops and web runtime become visible and survive a short
post-ready confirmation window, with the web side still holding a live managed
pid and an accepting listener on the requested port. Restart now also reuses
the saved listener port to recover the real serving pid when the web process
has renamed itself into the underlying C<starman master> form, so container
restarts still own and replace the active listener instead of losing control
after startup. On Linux hosts that are also running Developer Dashboard inside
Docker containers, managed stop and restart paths now reject sibling runtime
pids that live in a different Linux pid namespace, so a host-side restart does
not accidentally kill or adopt a container-owned web listener or collector

 view all matches for this distribution


Dist-Zilla-Plugin-Dpkg-PerlbrewStarman

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN

enum 'WebServer', [qw(apache nginx all)];
subtype 'ApacheModule', as 'Str', where { $_ =~ /^[a-z_]+$/ };
subtype 'ApacheModules', as 'ArrayRef[ApacheModule]', message { 'The value provided for apache_modules does not look like a list of whitespace-separated Apache modules' };
coerce 'ApacheModules', from 'Str', via { [ split /\s+/ ] };

#ABSTRACT: Generate dpkg files for your perlbrew-backed, starman-based perl app


has '+conffiles_template_default' => (
    default => '/etc/default/{$package_name}
/etc/init.d/{$package_name}

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN

PSGIAPP="{$psgi_script}"
PIDFILE="/var/run/$APP.pid"

PERLBREW_PATH="$APPDIR/perlbrew/bin"

DAEMON_ARGS="-Ilib $PSGIAPP --daemonize --user $APPUSER --preload-app --workers {$starman_workers} --pid $PIDFILE --port {$starman_port} --host 127.0.0.1 --error-log /var/log/$APP/error.log"
'
);

has '+init_template_default' => (
    default => '#!/bin/sh

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN


# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

PATH=$PERLBREW_PATH:$PATH
DAEMON=`which starman`

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN

	dh $@ --without perl --without auto_configure
'
);


has 'starman_port' => (
    is => 'ro',
    isa => 'Str',
    required => 1
);


has 'starman_workers' => (
    is => 'ro',
    isa => 'Str',
    default => 5
);

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN


    if($self->has_uid) {
      $vars->{uid} = '--uid '.$self->uid;
    }

    $vars->{starman_port} = $self->starman_port;
    $vars->{starman_workers} = $self->starman_workers;
    $vars->{startup_time} = $self->startup_time;

    if(($self->web_server eq 'apache') || ($self->web_server eq 'all')) {
        $vars->{package_binary_depends} .= ', apache2';
        $vars->{webserver_config_link} .= '# Symlink to the apache config for this environment

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN

__END__
=pod

=head1 NAME

Dist::Zilla::Plugin::Dpkg::PerlbrewStarman - Generate dpkg files for your perlbrew-backed, starman-based perl app

=head1 VERSION

version 0.16

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN


    lib/
    root/
    script/foo.psgi
    config/nginx/foo.conf
    perlbrew/bin/starman

A minimal configuration:

    [Dpkg::PerlbrewStarman]
    web_server      = nginx
    starman_port    = 6000

A configuration showing optional attributes and their defaults:

    [Dpkg::PerlbrewStarman]
    web_server      = nginx
    starman_port    = 6000
    psgi_script     = script/foo.psgi
    starman_workers = 5
    startup_time    = 30

A configuration showing optional attributes that have no defaults:

    [Dpkg::PerlbrewStarman]
    web_server      = apache
    starman_port    = 6000
    apache_modules  = ldap ssl
    uid             = 782

=head1 DESCRIPTION

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN


=head2 Environment

By default, C</srv/$PACKAGE/perlbrew/bin> is prepended to the C<PATH> by
way of the C<PERLBREW_PATH> variable in C</etc/default/$PACKAGE>.  The
C<starman> binary must be present in the path, else the service will
fail to start.

The application runs as user $PACKAGE by way of the --user argument to
L<Starman>.  Starman flags are specified by the C<DAEMON_ARGS> variable
in C</etc/default/$PACKAGE>.

lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm  view on Meta::CPAN

* L<Dist::Zilla::Plugin::ChangelogFromGit::Debian>
* L<Dist::Zilla::Deb>

=head1 ATTRIBUTES

=head2 starman_port

The port to use for starman (required).

=head2 starman_workers

The number of starman workers (5 by default).

=head2 psgi_script

Location of the psgi script started by starman. By default this is
C<script/$PACKAGE.psgi>.

=head2 startup_time

The amount of time (in seconds) that the init script will wait on startup. Some

 view all matches for this distribution


EPublisher-Source-Plugin-MetaCPAN

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Changes for EPublisher::Source::Plugin::MetaCPAN
================================================

0.24 2014-12-02
    - added contributors section in documentation
    - fix 03_bin_dir.t: Title of starman documentation
    - added info about resources: links to github account

0.23 2013-01-03
    - added more debugging stuff
    - use eval {} to catch errors

 view all matches for this distribution


ETL-Yertl

 view release on metacpan or  search on metacpan

t/command/ygrok/pattern/ps-x.t  view on Meta::CPAN

            {
                pid => 5345,
                tty => '?',
                status => 'Sl',
                time => '219:15',
                command => 'starman master',
            },
        );

        test_ygrok( $file, $pattern, \@expect );
        test_ygrok( $file, "%{POSIX.PSX}", \@expect )

 view all matches for this distribution



Geo-OGC-Service

 view release on metacpan or  search on metacpan

lib/Geo/OGC/Service.pm  view on Meta::CPAN


1) write a service.psgi file (see above) and put it somewhere like

   /var/www/service/service.psgi 

2) Set up starman service and add to its init-file line something like

   exec starman --daemonize --error-log /var/log/starman/log --l localhost:5000 /var/www/service/service.psgi

3) Add a proxy service to your httpd configuration. For Apache it
would be something like this:

   <Location /Service>

 view all matches for this distribution


Grimlock

 view release on metacpan or  search on metacpan

lib/Grimlock.pm  view on Meta::CPAN


  dbicadmin --schema=Grimlock::Schema   --connect='["dbi:Pg:dbname=grimlock", "grimlock", "king!"]' --deploy

NOW START SERVER 

  starman --listen :5000 --workers 2 /path/to/grimlock_web.psgi --pid /tmp/grimlock.pid --error-log /path/to/error.log -D

=head1 STARMAN AND CUSTOM CONFIG

ME GRIMLOCK RECOMMEND SPECIFYING CONFIG VARS LIKE SO:

lib/Grimlock.pm  view on Meta::CPAN

    </realms>
  </Plugin::Authentication>
  
THEN, START GRIMLOCK LIKE SO

  CATALYST_CONFIG=/path/to/config/you/just/made.conf starman --listen :5000 --workers 2 /path/to/grimlock_web.psgi --pid /tmp/grimlock.pid --error-log /path/to/error.log -D


IF NO EXPLODE, GRIMLOCK SAVE BLOG FOR YOU

=head1 STARMAN + NGINX

 view all matches for this distribution


Hijk

 view release on metacpan or  search on metacpan

t/bin/split-in-chunks.psgi  view on Meta::CPAN

#!/usr/bin/env perl
# need Starman to produce chunked response.
#  starman --worker 4 t/bin/split-in-chunks.psgi
## perl -E 'print "GET / HTTP/1.1\r\nHost: localhost\r\n\r\n"' | nc localhost 5000

use strict;
use warnings;

 view all matches for this distribution


LedgerSMB-Installer

 view release on metacpan or  search on metacpan

lib/LedgerSMB/Installer/OS/unix.pm  view on Meta::CPAN


sub generate_start_script($self, $installpath, $locallib) {
    ###TODO: capture file open error
    my $script = File::Spec->catfile( $installpath, 'server-start' );
    open( my $fh, '>', $script );
    my $starman = $self->have_cmd( 'starman', 0, [ File::Spec->catdir( $locallib, 'bin' ) ] );
    my $locallib_lib = File::Spec->catdir( $locallib, 'lib', 'perl5' );

    say $fh <<~EOF;
      #!/usr/bin/bash

      cd $installpath
      exec $^X \\
          -I $installpath/lib \\
          -I $installpath/old/lib \\
          -I $locallib_lib \\
          $starman \\
          --listen 0.0.0.0:5762 \\
          --workers \${LSMB_WORKERS:-5} \\
          --preload-app bin/ledgersmb-server.psgi
      EOF
    ###TODO: capture mode change error

 view all matches for this distribution



Lingua-EN-Segment

 view release on metacpan or  search on metacpan

share/count_1w.txt  view on Meta::CPAN

rudiments	158046
epoxies	158044
tagname	158034
erwartet	158033
vali	158032
starman	158029
cotonou	158027
epicurious	158025
diverticulitis	158024
heathens	158022
celibate	158022

 view all matches for this distribution


Mail-SpamCannibal

 view release on metacpan or  search on metacpan

config/sc_BlackList.conf.sample  view on Meta::CPAN

		go\.retevision\.es
		gsp\.bellsouth\.net
		h\.pppool\.de
		hg\.mdip\.bt\.net
		hnllhi1\.dsl-verizon\.net
		host10\.starman\.ee
		host13\.starman\.ee
		host14\.starman\.ee
		host15\.starman\.ee
		host17\.starman\.ee
		host18\.starman\.ee
		host2\.starman\.ee
		host20\.starman\.ee
		host22\.starman\.ee
		host25\.starman\.ee
		host28\.starman\.ee
		host30\.starman\.ee
		host33\.starman\.ee
		host34\.starman\.ee
		host38\.starman\.ee
		host4\.starman\.ee
		host40\.starman\.ee
		host41\.starman\.ee
		host42\.starman\.ee
		host43\.starman\.ee
		host49\.starman\.ee
		host5\.starman\.ee
		host9\.starman\.ee
		hsia\.telus\.net
		hsinchu-dial\.pagic\.net
		i\.pppool\.de
		ida\.starman\.ee
		in-addr\.btopenworld\.com
		int\.bellsouth\.net
		ip\.alltel\.net
		ip\.ricochet\.net
		ippool\.ndo\.com

config/sc_BlackList.conf.sample  view on Meta::CPAN

		j\.pppool\.de
		jan\.bellsouth\.net
		k\.pppool\.de
		l\.pppool\.de
		lsanca1\.dsl-verizon\.net
		lsn\.starman\.ee
		m\.ppp-pool\.de
		m\.pppool\.de
		mclass\.broadwing\.net
		mem\.bellsouth\.net
		mia\.bellsouth\.net

 view all matches for this distribution


Martian

 view release on metacpan or  search on metacpan

lib/Martian.pm  view on Meta::CPAN

This is an extension of the Starman server that can be run via Starman by specifying
the server Martian.  It allows the server to kill the processes when they use
too much memory.  This is done between requests so that the web server isn't interrupted.
This is similar to the max requests parameter.

    starman phoenix-ui-admin.psgi --listen :5001 --server Martian --memory-limit 10000

The memory figure relates to the processes 'maximum shared memory or current resident set'
which shows up in top/htop as RES.  The figure is in KiB.

=head1 NAME

 view all matches for this distribution


Mojolicious-Plugin-Minion-Starter

 view release on metacpan or  search on metacpan

lib/Mojolicious/Plugin/Minion/Starter.pm  view on Meta::CPAN

	if ($self->config->{debug}) {
	    $self->app->log->info(sprintf "Server type is %s, process %d", ref $server, $$);
	    $self->app->log->info(sprintf "Pid of parent of server process is %d", getppid());
	}
	# Mojo::Server::PSGI + plackup: parent is shell, server is plackup
	# Mojo::Server::PSGI + starman: parent is starman
	# Mojo::Server::Daemon morbo: parent is not shell

	if (ref $server eq 'Mojo::Server::Prefork') {
	    $server->on(spawn => sub  {
			    my ($server, $pid) = @_;

 view all matches for this distribution


Monitoring-Reporter

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

Once the package is installed you need to set up some kind of PSGI adapter to
make the application accessible. This documentation will show one way of doing
that using Apache and Starman but you can use any PSGI adapter and webserver
you like.

Install starman and make it listen on e.g. port 5001 and serve the PSGI file at
/usr/bin/mreporter-web.psgi.

Then create a new apache vhost that contains the required proxy settings:

  <IfModule mod_proxy.c>

 view all matches for this distribution


Net-AS2-PSGI

 view release on metacpan or  search on metacpan

lib/Net/AS2/PSGI.pm  view on Meta::CPAN


=head1 EXAMPLES

This module has an /examples directory. It contains an example PSGI
application, its base configuration file, a systemd service for
starman and an nginx conf file with SSL configurations.  There is also
some basic configuration files to get you started with partnering up
with an instance of L<https://github.com/phax/as2-server>.

The module's /t testing directory, includes test cases that forks AS2
L<Plack::Test> applications, and then tests transferring files between

 view all matches for this distribution


Net-DNSBL-MultiDaemon

 view release on metacpan or  search on metacpan

multi_dnsbl.conf.sample  view on Meta::CPAN

		go\.retevision\.es
		gsp\.bellsouth\.net
		h\.pppool\.de
		hg\.mdip\.bt\.net
		hnllhi1\.dsl-verizon\.net
		host10\.starman\.ee
		host13\.starman\.ee
		host14\.starman\.ee
		host15\.starman\.ee
		host17\.starman\.ee
		host18\.starman\.ee
		host2\.starman\.ee
		host20\.starman\.ee
		host22\.starman\.ee
		host25\.starman\.ee
		host28\.starman\.ee
		host30\.starman\.ee
		host33\.starman\.ee
		host34\.starman\.ee
		host38\.starman\.ee
		host4\.starman\.ee
		host40\.starman\.ee
		host41\.starman\.ee
		host42\.starman\.ee
		host43\.starman\.ee
		host49\.starman\.ee
		host5\.starman\.ee
		host9\.starman\.ee
		hsia\.telus\.net
		hsinchu-dial\.pagic\.net
		i\.pppool\.de
		ida\.starman\.ee
		in-addr\.btopenworld\.com
		int\.bellsouth\.net
		ip\.alltel\.net
		ip\.ricochet\.net
		ippool\.ndo\.com

multi_dnsbl.conf.sample  view on Meta::CPAN

		j\.pppool\.de
		jan\.bellsouth\.net
		k\.pppool\.de
		l\.pppool\.de
		lsanca1\.dsl-verizon\.net
		lsn\.starman\.ee
		m\.ppp-pool\.de
		m\.pppool\.de
		mclass\.broadwing\.net
		mem\.bellsouth\.net
		mia\.bellsouth\.net

 view all matches for this distribution


OpusVL-Docker

 view release on metacpan or  search on metacpan

bin/entrypoint  view on Meta::CPAN

    if ($ENV{DEBUG_CONSOLE} or -t STDOUT) {
        unshift @cmd, $^X, qw(-d);
    }
}
else {
    @cmd = ($Config{bin} . '/starman', qw( --server Martian --listen), ":$PORT");

    if ($ENV{MEMORY_LIMIT}) {
        push @cmd, '--memory-limit', $ENV{MEMORY_LIMIT};
    }

 view all matches for this distribution


Perl-Types

 view release on metacpan or  search on metacpan

t/lib/Perl/Types/Test/HashReference/program_02_bad_00.pl  view on Meta::CPAN

## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls)  # USER DEFAULT 1: allow numeric values & print operator
## no critic qw(RequireInterpolationOfMetachars)  # USER DEFAULT 2: allow single-quoted control characters & sigils

# [[[ OPERATIONS ]]]

my hashref::integer $i_hash = { least_random => 17, fnord => 23, dont_panic => 42, enterprise => 1_701, starman => 2_112 }

 view all matches for this distribution


Pinto

 view release on metacpan or  search on metacpan

lib/Pinto/Manual/Installing.pod  view on Meta::CPAN


    update-rc.d pintod start 50 2 3 4 5 . stop 20 0 1 6 .

=head2 AN IMPORTANT NOTE ABOUT SECURITY

Currently daemonizing the pintod server will run the starman workers 
as root.  We hope to soon have the pintod daemon drop its privileges 
after initiating the master and before spawning the workers, so that
the workers will run as the pinto user.  Until that feature is in
place, pinto repository administrators are urged to keep their
installations safely behind firewalls, protected from the potentially

 view all matches for this distribution


Plack-App-CGIBin-Streaming

 view release on metacpan or  search on metacpan

lib/Plack/App/CGIBin/Streaming.pm  view on Meta::CPAN

    # In Perl (at least up to 5.18.0) the first assignment to $SIG{CHLD}
    # or $SIG{CLD} determines which name is later passed to the signal handler
    # on systems like Linux that support both names.
    # This hack tries to be the first such assignment in the perl program
    # and thus pin down that name.
    # Net::Server based servers like starman rely on "CHLD" to be passed to
    # the signal handler.
    local $SIG{CHLD}=$SIG{CHLD};
}

use parent qw/Plack::App::File/;

lib/Plack/App/CGIBin/Streaming.pm  view on Meta::CPAN

 perl Build.PL
 ./Build

you can try it out:

 (cd eg && starman -l :5091 --workers=2 --preload-app app.psgi) &

Then you should be able to access

=over 4

 view all matches for this distribution


Plack-App-MCCS

 view release on metacpan or  search on metacpan

local/lib/perl5/Plack/Loader/Delayed.pm  view on Meta::CPAN

management with copy-on-write, however the application C<myapp.psgi>
is loaded per children.

L<Starman> since version 0.2000 loads this loader by default unless
you specify the command line option C<--preload-app> for the
L<starman> executable.

=head1 DEVELOPERS

Web server developers can make use of C<psgi_app_builder> attribute
callback set in Plack::Handler, to load the application earlier than

 view all matches for this distribution


Plack-Middleware-Assets

 view release on metacpan or  search on metacpan

lib/Plack/Middleware/Assets.pm  view on Meta::CPAN


=head1 DEVELOPMENT MODE

 $ plackup app.psgi
 
 $ starman -E development app.psgi

In development mode the minification is disabled and the
concatenated content is regenerated if there were any changes
to the files.

 view all matches for this distribution


Plack

 view release on metacpan or  search on metacpan

lib/Plack/Loader/Delayed.pm  view on Meta::CPAN

management with copy-on-write, however the application C<myapp.psgi>
is loaded per children.

L<Starman> since version 0.2000 loads this loader by default unless
you specify the command line option C<--preload-app> for the
L<starman> executable.

=head1 DEVELOPERS

Web server developers can make use of C<psgi_app_builder> attribute
callback set in Plack::Handler, to load the application earlier than

 view all matches for this distribution


( run in 0.720 second using v1.01-cache-2.11-cpan-e93a5daba3e )