|
I have a node.js application and I use GNU Screen to keep the session alive when I log out from the server. Every now and then the app is down and I need to start it again. I guess it is simply because the server rebooted. Is there a way to lunch the app whenever the server reboots? Maybe still using GNU Screen so that I can get back to the running process? Is what adviced here still the best approach? If so, is this script the easiest way to do so? Thanks! |
|
Yes the best approach is with a bash script that is execute via cron at a set interval:
|