Help for this page

Select Code to Download


  1. or download this
    [Unit]
    Description=Perl App
    ...
    KillMode=mixed
    [Install]
    WantedBy=multi-user.target
    
  2. or download this
    #!/usr/bin/perl
    use Mojo::Base -strict;
    ...
    
    die extract_usage if $help || !(my $app = shift || $ENV{HYPNOTOAD_APP}
    +);
    Mojo::Server::Hypnotoad->new->run($app,pid_file => '/tmp/movie-app/hyp
    +notoad.pid');