Implement internal restart / run_forever in monitor

This commit is contained in:
Vitaliy Filippov
2024-06-08 00:35:18 +03:00
parent 4eabebd245
commit 1228403e74
5 changed files with 151 additions and 39 deletions
+1 -1
View File
@@ -23,4 +23,4 @@ for (let i = 2; i < process.argv.length; i++)
}
}
new Mon(options).start().catch(e => { console.error(e); process.exit(1); });
Mon.run_forever(options);