- Added a wait timeout parameter to the WAITING method, so that Spectre

doesn't have to check something that the workflow activity knows it will 
   have to wait on for a while.
 - Added --stop and --start aliases to spectre.pl.
This commit is contained in:
JT Smith 2008-11-19 01:15:31 +00:00
parent 7349633d63
commit bc5fd3c727
21 changed files with 89 additions and 44 deletions

View file

@ -37,7 +37,9 @@ GetOptions(
'help'=>\$help,
'ping'=>\$ping,
'shutdown'=>\$shutdown,
'stop'=>\$shutdown,
'daemon'=>\$daemon,
'start'=>\$daemon,
'debug' =>\$debug,
'status' => \$status,
'run' => \$run,
@ -75,17 +77,22 @@ if ($shutdown) {
die $POE::Component::IKC::ClientLite::error unless defined $result;
$remote->disconnect;
undef $remote;
} elsif ($ping) {
}
elsif ($ping) {
my $res = ping();
print "Spectre is Alive!\n" unless $res;
print "Spectre is not responding.\n".$res if $res;
} elsif ($status) {
}
elsif ($status) {
print getStatusReport();
} elsif ($test) {
}
elsif ($test) {
Spectre::Admin->runTests($config);
} elsif ($run) {
}
elsif ($run) {
Spectre::Admin->new($config, $debug);
} elsif ($daemon) {
}
elsif ($daemon) {
if (!ping()) {
die "Spectre is already running.\n";
}
@ -140,9 +147,9 @@ spectre - WebGUI's workflow and scheduling.
=head1 SYNOPSIS
spectre {--daemon|--run} [--debug]
spectre {--daemon | --start | --run} [--debug]
spectre --shutdown
spectre --shutdown | --stop
spectre --ping
@ -199,11 +206,19 @@ where B<IP-address> is the IP address and B<Port> is the port number
where Spectre should be listening for connections on according to
B<spectre.conf>.
=item B<--start>
Alias for --daemon.
=item B<--status>
Shows a summary of Spectre's internal status. The summary contains
a tally of suspended, waiting and running WebGUI Workflows.
=item B<--stop>
Alias for --shutdown.
=item B<--test>
Tests whether Spectre can connect to WebGUI. Both Spectre