reboot unfurler periodically

This commit is contained in:
Mononaut 2023-08-06 13:47:38 +09:00
parent 6fc645a454
commit 9aa778e44e
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -50,6 +50,12 @@ class Server {
this.canonicalHost = canonical;
this.startServer();
setTimeout(async () => {
logger.info(`killing myself now`);
await this.stopServer();
process.exit(0);
}, 3600_000 * (1 + Math.random()))
}
async startServer() {