Removed the reboot job at the end of anvil-configure-host.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 30248760b5
commit 5a8f775db4
  1. 29
      tools/anvil-configure-host

@ -110,20 +110,21 @@ $anvil->nice_exit({exit_code => 0});
sub do_reboot sub do_reboot
{ {
my ($anvil) = @_; my ($anvil) = @_;
# Mark that a reboot is needed, in case something kills us before we actually reboot. ### TODO: Nothing should be killing us, anything that could should be updated to hold while we run.
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0687", variables => { reason => "#!string!log_0693!#" }}); # # Mark that a reboot is needed, in case something kills us before we actually reboot.
my ($job_uuid) = $anvil->Database->insert_or_update_jobs({ # $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0687", variables => { reason => "#!string!log_0693!#" }});
file => $THIS_FILE, # my ($job_uuid) = $anvil->Database->insert_or_update_jobs({
line => __LINE__, # file => $THIS_FILE,
job_command => $anvil->data->{path}{exe}{'anvil-manage-power'}." --reboot -y".$anvil->Log->switches, # line => __LINE__,
job_data => "", # job_command => $anvil->data->{path}{exe}{'anvil-manage-power'}." --reboot -y".$anvil->Log->switches,
job_name => "reboot::system", # job_data => "",
job_title => "job_0009", # job_name => "reboot::system",
job_description => "job_0006", # job_title => "job_0009",
job_progress => 0, # job_description => "job_0006",
}); # job_progress => 0,
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { job_uuid => $job_uuid }}); # });
# $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { job_uuid => $job_uuid }});
my $time_left = 60; my $time_left = 60;
while ($time_left) while ($time_left)

Loading…
Cancel
Save