|
|
@ -60,7 +60,7 @@ if (($anvil->data->{scancore}{'scan-hardware'}{disable}) && (not $anvil->data->{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Handle start-up tasks |
|
|
|
# Handle start-up tasks |
|
|
|
my $problem = $anvil->ScanCore->agent_startup({debug => 2, agent => $THIS_FILE}); |
|
|
|
my $problem = $anvil->ScanCore->agent_startup({agent => $THIS_FILE}); |
|
|
|
if ($problem) |
|
|
|
if ($problem) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$anvil->nice_exit({exit_code => 1}); |
|
|
|
$anvil->nice_exit({exit_code => 1}); |
|
|
@ -91,7 +91,7 @@ find_changes($anvil); |
|
|
|
process_health($anvil); |
|
|
|
process_health($anvil); |
|
|
|
|
|
|
|
|
|
|
|
# Shut down. |
|
|
|
# Shut down. |
|
|
|
$anvil->ScanCore->agent_shutdown({debug => 2, agent => $THIS_FILE}); |
|
|
|
$anvil->ScanCore->agent_shutdown({agent => $THIS_FILE}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################################################# |
|
|
|
############################################################################################################# |
|
|
|