Auto restart application every day

Hello. I run a nodejs webserver using websockets that’s honestly… not the most stable of apps. I frequently get errors like this.

lhr [error] could not make HTTP request to instance: connection error: timed out

Given this, I’d like to find a way to auto restart it, say once every 12 hours to remove memory leaks, overrun cpu usage, and etc.

Any advice is greatly appreciated. thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.