aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/TimeZone.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Shared/TimeZone.pm')
-rw-r--r--lib/ManaTools/Shared/TimeZone.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ManaTools/Shared/TimeZone.pm b/lib/ManaTools/Shared/TimeZone.pm
index 121a123..98ebd2a 100644
--- a/lib/ManaTools/Shared/TimeZone.pm
+++ b/lib/ManaTools/Shared/TimeZone.pm
@@ -167,9 +167,11 @@ sub _ntp_program_init {
my $list = $self->ntpServiceList();
return "" if !$list;
- my $ntpd;
+ my $ntpd = "";
my $isRunning = 0;
- foreach $ntpd (@{$list}) {
+
+ foreach (@{$list}) {
+ $ntpd = $_;
$isRunning = $self->sh_services->is_service_running($ntpd);
last if $isRunning;
}
@@ -295,7 +297,7 @@ has 'sh_services' => (
sub _SharedServicesInitialize {
my $self = shift();
- $self->sh_services(ManaTools::Shared::Services->new() );
+ $self->sh_services(ManaTools::Shared::Services->new(include_static_services => 1) );
}