added listRunning to service
This commit is contained in:
parent
cb7e284313
commit
560c85ea61
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user