[service plugin] Correct way to handle process termination #1627
Answered
by
rustatian
asanikovich
asked this question in
Q&A
-
We run some processes by RR service plugin. In case of supervisor (we used before instead of RR service plugin), we can block SIGTERM signal (in place where important logic start) and increase timeout to wait before SIGKILL. |
Beta Was this translation helpful? Give feedback.
Answered by
rustatian
Jun 27, 2023
Replies: 1 comment 4 replies
-
Hey @asanikovich 👋🏻 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SIGTERM
signal. When receiving this signal, RR will initiate a graceful stop, here is the RR timeout (notservice
): https://github.com/roadrunner-server/roadrunner/blob/master/.rr.yaml#L2169. And yeah, RR will then sendSIGINT
to the underlying services.service_name_in_logs
via RPC and this one in one FR.