diff options
Diffstat (limited to 'lib/ManaTools/Shared/TimeZone.pm')
-rw-r--r-- | lib/ManaTools/Shared/TimeZone.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/TimeZone.pm b/lib/ManaTools/Shared/TimeZone.pm index 544759a..9aa7ef2 100644 --- a/lib/ManaTools/Shared/TimeZone.pm +++ b/lib/ManaTools/Shared/TimeZone.pm @@ -152,10 +152,12 @@ has 'ntp_program' => ( sub _ntp_program_init { my $self = shift; + $DB::single = 1; + # looks for a running service from the configured ones, # if none is running chooses the first of the list my $list = $self->ntpServiceList(); - return "" if !$list; + return "" if !$list || scalar @{$list} == 0; my $ntpd = ""; my $isRunning = 0; |