reboot unfurler periodically
This commit is contained in:
		
							parent
							
								
									6fc645a454
								
							
						
					
					
						commit
						9aa778e44e
					
				| @ -50,6 +50,12 @@ class Server { | |||||||
|     this.canonicalHost = canonical; |     this.canonicalHost = canonical; | ||||||
| 
 | 
 | ||||||
|     this.startServer(); |     this.startServer(); | ||||||
|  | 
 | ||||||
|  |     setTimeout(async () => { | ||||||
|  |       logger.info(`killing myself now`); | ||||||
|  |       await this.stopServer(); | ||||||
|  |       process.exit(0); | ||||||
|  |     }, 3600_000 * (1 + Math.random())) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async startServer() { |   async startServer() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user