This file is indexed.

/usr/share/perl5/App/Control/Apache.pm is in librunapp-perl 0.13-1.

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

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
#!/usr/bin/perl -w
use strict;

package App::Control::Apache;
use base qw(App::Control);

sub graceful {
    my $self = shift;
    die $self->status unless $self->running;
    if (kill ('USR1', $self->pid)) {
	return "$0: httpd gracefully restarted\n"
    }
    else {
	return "$0: httpd could not be restarted\n"
    }
}

sub configtest {
    my $self = shift;
    die $self->status unless $self->running;
    if (kill ('USR1', $self->pid)) {
	return "$0: httpd gracefully restarted\n"
    }
    else {
	return "$0: httpd could not be restarted\n"
    }
}

=head1 NAME

App::Control::Apache - App::Control subclass for apache

=head1 SYNOPSIS

 see App::Control

=head1 DESCRIPTION

The class implements additional methods for App::Control to emulate
apachectl.

=over

=item configtest

=item graceful

=back

=head1 SEE ALSO

L<App::Control>

=head1 AUTHORS

Chia-liang Kao <clkao@clkao.org>

=head1 COPYRIGHT

Copyright (C) 2002-5, Fotango Ltd.

This module is free software; you can redistribute it or modify it
under the same terms as Perl itself.

=cut

1;