How can I automatically restart my node js server every 4 hours automatically. There is a bug that only shows up after 4 hours and I want to be able to run it through the night. I'm already using forever. Thanks, Arjun
Asked
Active
Viewed 440 times
1 Answers
1
It doesn't sound like you're really solving the problem... But you could use a crob job.
Something like:
0 */4 * * * forever restart <MYSCRIPT.JS>

colbydauph
- 364
- 1
- 6
-
Of course not. I just need to buy some time. This problem is way more complicated than I thought – Arjun Patel Nov 05 '13 at 00:41
-
Can you explain the syntax to me? – Arjun Patel Nov 05 '13 at 00:52
-
Of course, but it was presumptuous of me to assume you were on an OS that supports cron. Which OS are you running? – colbydauph Nov 05 '13 at 01:51