/usr/share/perl5/Octopussy/System.pm is in octopussy 1.0.6-0ubuntu1.
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 68 69 70 71 72 73 74 | =head1 NAME
Octopussy::System - Octopussy System module
=cut
package Octopussy::System;
use strict;
use warnings;
use App::Info::HTTPD::Apache;
=head1 FUNCTIONS
=head2 Apache2_Binary()
Returns Apache2 Binary
=cut
sub Apache2_Binary
{
my $apache = App::Info::HTTPD::Apache->new();
return ($apache->executable) if (defined $apache->executable);
return (undef);
}
=head2 Dispatcher_Reload()
Reloads Dispatcher
=cut
sub Dispatcher_Reload
{
my $dir_pid = Octopussy::FS::Directory('running');
opendir DIR, $dir_pid;
my @files = grep { /octo_dispatcher\.pid$/ } readdir DIR;
closedir DIR;
foreach my $file (@files)
{
my $pid = `cat $dir_pid$file`;
chomp $pid;
kill HUP => $pid;
}
return (1);
}
=head2 Restart()
Restarts Octopussy
=cut
sub Restart
{
`/etc/init.d/octopussy restart`;
return (1);
}
1;
=head1 AUTHOR
Sebastien Thebert <octo.devel@gmail.com>
=cut
|