This file is indexed.

/usr/bin/hypnotoad is in libmojolicious-perl 2.23-1.

This file is owned by root:root, with mode 0o755.

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env perl

use strict;
use warnings;

use File::Basename 'dirname';
use File::Spec;

use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojo::Server::Hypnotoad; 1';
It looks like you don't have the Mojolicious framework installed.
Please visit http://mojolicio.us for detailed installation instructions.

EOF

use Getopt::Long 'GetOptions';

# "Hey sexy mama, wanna kill all humans?"
my $toad   = Mojo::Server::Hypnotoad->new;
my $config = 'hypnotoad.conf';
my $help;
GetOptions(
  'config=s' => sub { $config                    = $_[1] },
  foreground => sub { $ENV{HYPNOTOAD_FOREGROUND} = 1 },
  help       => sub { $help                      = 1 },
  stop       => sub { $ENV{HYPNOTOAD_STOP}       = 1 },
  test       => sub { $ENV{HYPNOTOAD_TEST}       = 1 }
);
$help = 1 unless my $app = shift || $ENV{HYPNOTOAD_APP};

# Usage
die <<"EOF" if $help;
usage: $0 [OPTIONS] [APPLICATION]

  hypnotoad script/myapp
  hypnotoad myapp.pl

These options are available:
  --config <path>   Configuration file, defaults to "hypnotoad.conf" in the
                    same directory as the application script.
  --foreground      Keep manager process in foreground.
  --help            Show this message.
  --stop            Stop server gracefully.
  --test            Test application/configuration and exit.
EOF

# "This is it.
#  The moment we should've trained for."
$toad->run($app, $config);

__END__

=head1 NAME

hypnotoad - Hypnotoad HTTP 1.1 and WebSocket server

=head1 SYNOPSIS

  $ hypnotoad --help
  $ hypnotoad myapp.pl

=head1 DESCRIPTION

Start L<Mojolicious> and L<Mojolicious::Lite> applications with the
L<Mojo::Server::Hypnotoad> web server.

=head1 SEE ALSO

L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.

=cut