kiwiroy / mojolicious-command-author-generate-launchd

Create a launchd.plist file for a Mojolicious application/Run with hypnotoad-launchd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status Kritika Analysis Status

NAME

hypnotoad-launchd - Hypnotoad HTTP and WebSocket server managed by launchd

SYNOPSIS

Usage: hypnotoad-launchd [OPTIONS] [APPLICATION]

  hypnotoad-launchd ./script/my_app
  hypnotoad-launchd ./myapp.pl
  hypnotoad-launchd -s ./myapp.pl
  hypnotoad-launchd -t ./myapp.pl

Options:
  -h, --help         Show this message
  -a, --auto         Enable the autorestarting feature (not supported)
  -s, --stop         Stop server gracefully
  -t, --test         Test application and exit

DESCRIPTION

Start Mojolicious and Mojolicious::Lite applications with the Hypnotoad web server in a method that is managed by launchd/launchctl.

Essentially, this is a controller script for hypnotoad that runs in the foreground utilising the code from Mojo::Server::Hypnotoad and Mojo::Server::Prefork. Identical signals are handled and proxied to the daemonized instance of hypnotoad as required.

SEE ALSO

Mojolicious, Mojolicious::Guides, https://mojolicious.org, daemondo from macports.

About

Create a launchd.plist file for a Mojolicious application/Run with hypnotoad-launchd


Languages

Language:Perl 83.6%Language:Perl 6 16.4%