diff options
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Shared/Services.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Shared/Services.pm b/lib/AdminPanel/Shared/Services.pm index 3230e160..f5b6de17 100644 --- a/lib/AdminPanel/Shared/Services.pm +++ b/lib/AdminPanel/Shared/Services.pm @@ -755,8 +755,8 @@ sub is_service_running { $self->service_exists($service) or return 0; my $out; if ($self->_running_systemd()) { - my $ser_info = $self->get_service_info($name); - $out = $ser_info->{active_state} eq 'active'; + my $ser_info = $self->get_service_info($service); + $out = $ser_info->{active_state} eq 'active' if $ser_info->{active_state}; } else { $ENV{PATH} = "/usr/bin:/usr/sbin"; $out = AdminPanel::Shared::RunProgram::rooted("", '/usr/sbin/service', $service, 'status'); |