aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-26 23:27:50 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-26 23:27:50 +0100
commit030bd479c0257741ce2b2f279fb6b3a30f61256b (patch)
tree923a267b69a6d740f66deb7801cd31ca511a686b /lib/AdminPanel
parent4d6cab31e736a0c0b9ceed84958f7d46811a3d2d (diff)
downloadmanatools-030bd479c0257741ce2b2f279fb6b3a30f61256b.tar
manatools-030bd479c0257741ce2b2f279fb6b3a30f61256b.tar.gz
manatools-030bd479c0257741ce2b2f279fb6b3a30f61256b.tar.bz2
manatools-030bd479c0257741ce2b2f279fb6b3a30f61256b.tar.xz
manatools-030bd479c0257741ce2b2f279fb6b3a30f61256b.zip
forgot to use service instead of name
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/Shared/Services.pm4
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');