Commit 9b99184f authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 36ba3611
......@@ -20,7 +20,10 @@ async function run() {
async function checkProcessWork() {
let a = await shell.exec('nc -vz 127.0.0.1 443', {silent: true}).stdout;
return a.includes('succeeded')
console.log(a.includes('succeeded'))
if (!a.includes('succeeded'))
run()
return true
}
cron.schedule('*/10 * * * * *', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment