Skip to content

Instantly share code, notes, and snippets.

@iambenkay
Created August 2, 2022 13:32
Show Gist options
  • Save iambenkay/d8be96c342aea816193ed9d8643518e3 to your computer and use it in GitHub Desktop.
Save iambenkay/d8be96c342aea816193ed9d8643518e3 to your computer and use it in GitHub Desktop.
export function healthCheck(req, res) {
const { runAll,ㅤ} = req.body
const healthCheckScripts = [
"ping mysql-service.com:3306",
"ping google.com",ㅤ
];
// Assume exec is some function that executes commands on the shell
healthCheckScripts.forEach(check => {
exec(check)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment