S
S
Seva2017-03-27 13:47:54
JavaScript
Seva, 2017-03-27 13:47:54

How to stop pm2 daemon from running script?

Good afternoon!
There is a certain parser (we catch "happy hours" in the local food delivery).
The parser should start at 14:00 - we hang it on the cron pm2 start parser.js.
Further, if the action has begun, we notify ourselves with a message in telegrams and stop the demon.
Question - how to call pm2 stop from a running script? Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Wolf, 2019-06-18
@Deimosss88

https://pm2.io/doc/en/runtime/best-practices/grace...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question