- OBJECTS and BEHAVIORS
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.
sequence for each batch of targets.
Name of the maintenance event.
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.