Skip to content
Browse files

Maintenance feature: allow to force initial status by settings

  • Loading branch information...
1 parent 97a61f8 commit f0974a4af6146a942889fd59261d2fbcc78a6def @obazoud obazoud committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 api.js
View
6 api.js
@@ -98,7 +98,11 @@ module.exports.checkAllServices = function() {
status.services[i].name = settings.services[i].name;
status.services[i].group = settings.services[i].group;
status.services[i].label = settings.services[i].label;
- status.services[i].status = 'unknown';
+ if (settings.services[i].status) {
+ status.services[i].status = settings.services[i].status;
+ } else {
+ status.services[i].status = 'unknown';
+ }
status.services[i].statusCode = 0;
status.services[i].message = '';

0 comments on commit f0974a4

Please sign in to comment.
Something went wrong with that request. Please try again.