From 8963aa43c9a5624ab3897e1dba085327e06d2a64 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 25 Sep 2024 16:17:10 -0700 Subject: [PATCH] preserve helper logs on bounce --- etc/start_helper_sidecar.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/start_helper_sidecar.sh b/etc/start_helper_sidecar.sh index 56f3cd8..bab81b0 100755 --- a/etc/start_helper_sidecar.sh +++ b/etc/start_helper_sidecar.sh @@ -15,4 +15,5 @@ helper_port=$5 sidecar_port=$6 identity=$7 -nohup draft run-helper-sidecar --config_path "$config_path" --root_path "$root_path" --helper_domain "$helper_domain" --sidecar_domain "$sidecar_domain" --helper_port "$helper_port" --sidecar_port "$sidecar_port" --identity "$identity" > .draft/logs/helper_sidecar.log 2>&1 & echo $! > $pid_file +log_file=".draft/logs/helper_sidecar_$(date "+%Y-%m-%d_%H-%M-%S").log" +nohup draft run-helper-sidecar --config_path "$config_path" --root_path "$root_path" --helper_domain "$helper_domain" --sidecar_domain "$sidecar_domain" --helper_port "$helper_port" --sidecar_port "$sidecar_port" --identity "$identity" > "$log_file" 2>&1 & echo $! > $pid_file