diff options
-rw-r--r-- | lib/AdminPanel/Shared/Services.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AdminPanel/Shared/Services.pm b/lib/AdminPanel/Shared/Services.pm index f5b6de1..030e0de 100644 --- a/lib/AdminPanel/Shared/Services.pm +++ b/lib/AdminPanel/Shared/Services.pm @@ -410,6 +410,8 @@ sub _run_action { else { $object->RestartUnit("$service.service", 'fail'); } + # reload local cache + $self->_systemd_services(1); } else { $ENV{PATH} = "/usr/bin:/usr/sbin:/etc/rc.d/init.d/"; AdminPanel::Shared::RunProgram::rooted("", "/etc/rc.d/init.d/$service", $action); |