Log Message: |
VCL-1073
Added '&' after call to shutdown in Linux.pm::reboot and Linux.pm::shutdown so that they doesn't wait for the command to complete. Added 'max_attempts' = 1 argument to execute call so that multiple attempts aren't tried if the connection is quickly broken after the reboot starts. Removed error checking on the result of executing this command. Later on, the code waits for the computer to either shut down or not respond to ping and monitors the reboot. If the shutdown command failed for some reason, the code would still attempt a hard reset or power off.
Other
Moved activate_interfaces call to earlier in Linux.pm::post_load. It was being called after update_public_ip_address, synchronize_time, and possibly other steps that would require the interfaces to be up. Replaced duplicated code calling ifup in Linux.pm::activate_interfaces with call to start_network_interface.
|