aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-26 23:45:40 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-26 23:45:40 +0100
commit4ec4fa9c5c040fc23d66dc47e1f33b03a2124895 (patch)
treedc81cbe1001d0db5871302e5fed817bc20dde13d
parent030bd479c0257741ce2b2f279fb6b3a30f61256b (diff)
downloadcolin-keep-4ec4fa9c5c040fc23d66dc47e1f33b03a2124895.tar
colin-keep-4ec4fa9c5c040fc23d66dc47e1f33b03a2124895.tar.gz
colin-keep-4ec4fa9c5c040fc23d66dc47e1f33b03a2124895.tar.bz2
colin-keep-4ec4fa9c5c040fc23d66dc47e1f33b03a2124895.tar.xz
colin-keep-4ec4fa9c5c040fc23d66dc47e1f33b03a2124895.zip
refresh local data cache
-rw-r--r--lib/AdminPanel/Shared/Services.pm2
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);