mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 06:35:15 +01:00
reboot unfurler periodically
This commit is contained in:
parent
6fc645a454
commit
9aa778e44e
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue