mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 19:33:56 +08:00
This commit is contained in:
1 parent
c7bafc635d
commit
c71da84035
264 files changed
+8169
-3944
No files matched your search
@@ -1,9 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
let state = { service_running: true, dnsmasq_running: true };
|
||||
|
||||
let state = { service_running: true, dnsmasq_running: true, lookup_ok: true };
|
||||
return {
|
||||
state: state,
|
||||
service_status: function(name) {
|
||||
let running = name == 'dnsmasq' ? state.dnsmasq_running : state.service_running;
|
||||
return { running: running && state.lookup_ok, state: !state.lookup_ok ? 'unknown' : (running ? 'running' : 'stopped'), lookup_ok: state.lookup_ok };
|
||||
},
|
||||
service_running: function() { return state.service_running; },
|
||||
dnsmasq_running: function() { return state.dnsmasq_running; }
|
||||
};
|
||||
Reference in new issue
Block a user