P
P
Pavel Kityan2016-05-03 15:51:47
linux
Pavel Kityan, 2016-05-03 15:51:47

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

1 answer(s)
A
alegzz, 2016-05-03
@alegzz

and forever stop you do before reboot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question