ThauEx / ffrk-proxy

Proxy for Final Fantasy Record Keeper written in node.js
GNU Lesser General Public License v3.0
39 stars 21 forks source link

Re-running process if crashed? #76

Closed Cissamannen closed 7 years ago

Cissamannen commented 7 years ago

Hi,

I share my proxy with a few people. And at times, nodejs crashes it seems as it doesnt appear in process list. I also use task manager to set it up as auto start when booting computer. But is there a command I can add in start.bat that will "rerun" the command if nodejs dissappears? Like, make it check every 10 minutes or so for the process, IF its there, ignore and continue, if its NOT, then run the command again?

ThauEx commented 7 years ago

No there isn't, but you use a process manager like forever to keep it running.
Maybe this helps too: https://stackoverflow.com/questions/15602687/batch-file-restart-program-after-every-20-minutes

jdel commented 7 years ago

You can also run the docker container with --restart unless-stopped.