From 6781de96a4910fd152dfb2eb55561ff60838002e Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Thu, 23 Jan 2025 21:01:05 +0000 Subject: [PATCH] chore: update lodestar script to properly forward exit signals (#7383) **Motivation** Users might use the lodestar script inside docker or with a process manager like systemd (https://github.com/ChainSafe/lodestar/issues/7378) and in those cases we need to make sure Lodestar runs as primary process and not the shell script as otherwise exit signals are not properly forwarded or in case of systemd it does not wait for Lodestar to shut down. **Description** Update lodestar script to properly forward exit signals by execution the main node process via `exec`. This shouldn't change anything in regard to how we use the script during development. --- lodestar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodestar b/lodestar index 7cf5301e4de4..dc512c65b35b 100755 --- a/lodestar +++ b/lodestar @@ -4,4 +4,4 @@ # # ./lodestar.sh beacon --network mainnet -node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@" \ No newline at end of file +exec node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@"