Commit d353f07d authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 9b99184f
......@@ -19,11 +19,10 @@ async function run() {
}
async function checkProcessWork() {
let a = await shell.exec('nc -vz 127.0.0.1 443', {silent: true}).stdout;
console.log(a.includes('succeeded'))
if (!a.includes('succeeded'))
run()
return true
let a = await shell.exec('nc -vz 127.0.0.1 443').stdout;
if (a.includes('succeeded'))
return true
run()
}
cron.schedule('*/10 * * * * *', () => {
......
let a='Connection to 127.0.0.1 443 port [tcp/https] succeeded!'
console.log(a.includes('succeeded'))
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