From c0d27503cea1969b35151b86459bb8b540d24333 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 19 Mar 2021 07:30:14 +0000 Subject: [PATCH] docs: SIGUSR1 killing wrapper shell scripts (#16008) (cherry picked from commit 07dc522981153d6792912269d880ea2e0cb06020) Co-authored-by: Trent Nelson --- docs/src/running-validator/validator-start.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/running-validator/validator-start.md b/docs/src/running-validator/validator-start.md index 3917d959ee..cbc2987331 100644 --- a/docs/src/running-validator/validator-start.md +++ b/docs/src/running-validator/validator-start.md @@ -355,6 +355,11 @@ very large over time and it's recommended that log rotation be configured. The validator will re-open its when it receives the `USR1` signal, which is the basic primitive that enables log rotation. +If the validator is being started by a wrapper shell script, it is important to +launch the process with `exec` (`exec solana-validator ...`) when using logrotate. +This will prevent the `USR1` signal from being sent to the script's process +instead of the validator's, which will kill them both. + #### Using logrotate An example setup for the `logrotate`, which assumes that the validator is