From 560c85ea61ca2514104832572689bf9a59e248bb Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 29 May 2023 21:46:05 +0200 Subject: [PATCH] added listRunning to service --- src/kernel/service/ServiceManager.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/kernel/service/ServiceManager.hx b/src/kernel/service/ServiceManager.hx index 5a0c728..b77eb2d 100644 --- a/src/kernel/service/ServiceManager.hx +++ b/src/kernel/service/ServiceManager.hx @@ -120,4 +120,12 @@ class ServiceManager { Log.info('Service ${name} stopped'); return Success(Noise); } + + public function listRunning(): Array { + var running = []; + for (name in this.services.keys()){ + running.push(name); + } + return running; + } }