You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2017/08/03 00:08:02 UTC
svn commit: r1803937 - /vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm
Author: arkurth
Date: Thu Aug 3 00:08:02 2017
New Revision: 1803937
URL: http://svn.apache.org/viewvc?rev=1803937&view=rev
Log:
VCL-1069
Uncommented call to restart the w32time service and removed the /nowait argument from the w32tm.exe /resync command. This adds a few seconds to load but without these modifications, time is still not regularly synchronized by the time Windows activation is attempted.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm
Modified: vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm?rev=1803937&r1=1803936&r2=1803937&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm Thu Aug 3 00:08:02 2017
@@ -8960,9 +8960,9 @@ sub configure_time_synchronization {
notify($ERRORS{'OK'}, 0, "configured W32Time on $computer_name to use time source(s): $manual_peer_list");
}
- #$self->restart_service('w32time') || return;
+ $self->restart_service('w32time') || return;
- my $resync_command = "$system32_path/w32tm.exe /resync /nowait";
+ my $resync_command = "$system32_path/w32tm.exe /resync";
my ($resync_exit_status, $resync_output) = $self->execute({command => $resync_command, timeout_seconds => 20, max_attempts => 1, display_output => 0});
if (!defined($resync_output)) {
notify($ERRORS{'WARNING'}, 0, "failed to execute command to resync W32Time on $computer_name: $resync_command");
@@ -8985,8 +8985,8 @@ sub configure_time_synchronization {
}
# Set the maximum time change parameters back to the defaults for security
- $self->reg_add('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config', 'MaxPosPhaseCorrection', 'REG_DWORD', 50000000);
- $self->reg_add('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config', 'MaxNegPhaseCorrection', 'REG_DWORD', 50000000);
+ #$self->reg_add('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config', 'MaxPosPhaseCorrection', 'REG_DWORD', 50000000);
+ #$self->reg_add('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config', 'MaxNegPhaseCorrection', 'REG_DWORD', 50000000);
$self->get_current_computer_time();