added listRunning to service

This commit is contained in:
Djeeberjr 2023-05-29 21:46:05 +02:00
parent cb7e284313
commit 560c85ea61

View File

@ -120,4 +120,12 @@ class ServiceManager {
Log.info('Service ${name} stopped'); Log.info('Service ${name} stopped');
return Success(Noise); return Success(Noise);
} }
public function listRunning(): Array<String> {
var running = [];
for (name in this.services.keys()){
running.push(name);
}
return running;
}
} }