hypnotoad-launchd - Hypnotoad HTTP and WebSocket server managed by launchd
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
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.
Mojolicious, Mojolicious::Guides, https://mojolicious.org, daemondo from macports.