Janus - A maintenance platform
use Janus; my $janus = Janus->new ( name => 'foobar', conf => '/conf/file', path => '/path/file', ); $janus->run();
The following sequences may be defined. See Janus::Sequence.
BEGIN sequence.
sequence for each batch of targets.
End sequence.
Name of the maintenance event.
See Janus::Conf.
See Janus::Path.
Launch maintenance. Return 1 on failure, 0 on success.
Janus creates/obtains an advisory lock under the run directory. See Vulcan::ProcLock.
Janus logs to a file under the log directory. A symbolic link to the log file is created under the run directory. See Janus::Log.
Subroutines stuck and exclude are created from ctrl. See Janus::Ctrl.
Janus loads cache (HASH) from a YAML file, if any, under the run directory, then unlinks said file. When INT or TERM signal is caught, Janus dumps cache to said file, clears ctrl, and exits.
To install pantheon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm pantheon
CPAN shell
perl -MCPAN -e shell install pantheon
For more information on module installation, please visit the detailed CPAN module installation guide.