Skip to content

Commit

Permalink
Revert back to normal app version
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Dec 7, 2023
1 parent f0621af commit e4043c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
# command: manifest
# bootstrap-sha: ad2255c9c24f68d0adb5255159fa5a849ab880e4
last-release-sha: 849ed9960e22951f988050533ce1cf6e8ee29bb7
release-as: 9.3.0
# last-release-sha: 849ed9960e22951f988050533ce1cf6e8ee29bb7
# release-as: 9.3.0
release-type: node
package-name: butler
default-branch: master
Expand Down
7 changes: 5 additions & 2 deletions src/lib/service_monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ const verifyServicesExist = async (config, logger) => {
return result;
};

const checkServiceStatus = async (config, logger) => {
// Function to check the status of all Windows services specified in the config file
// The isFirsCheck parameter is used to determine if we should send a message to the alert destinations
// Set isFirsCheck default to false
const checkServiceStatus = async (config, logger, isFirstCheck = false) => {
const hostsToCheck = config.get('Butler.serviceMonitor.monitor');

hostsToCheck.forEach(async (host) => {
Expand Down Expand Up @@ -549,7 +552,7 @@ async function setupServiceMonitorTimer(config, logger) {
}, sched);

// Do an initial service status check
checkServiceStatus(config, logger);
checkServiceStatus(config, logger, true);
}
} else {
logger.error(
Expand Down

0 comments on commit e4043c6

Please sign in to comment.