Commit d353f07d authored by Ahmad Nemati's avatar Ahmad Nemati

init

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