Answer the question
In order to leave comments, you need to log in
How to gracefully shutdown scripts running through forever on OS reboot?
Greetings. Question to those who use forever.
In general, it is clear that in my case, forever should be started with --killSignal=SIGTERM.
Then, forever stopall will send SIGTERM to the scripts, and there, in the signal handler, I do everything I consider necessary before calling process.exit ().
But! If there is a reboot of the OS, then it does not work?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question