From 6a2f2b4efea4bd6663e0454cb1dab4f66d143a05 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 16 Jun 2025 14:20:07 +0200 Subject: [PATCH] task: do not use --pipe --pipe make the spawned task inherit the systemd-run's stdio. if/when system-run is killed, it might take out the spawned task as well with EPIPE. --- src/scripts/starttask.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/starttask.sh b/src/scripts/starttask.sh index 6acbdbe32..5125b1a47 100755 --- a/src/scripts/starttask.sh +++ b/src/scripts/starttask.sh @@ -31,7 +31,7 @@ systemctl reset-failed "${service_name}" 2>/dev/null || true readonly id=$(id -u $SUDO_USER) -options="-p TimeoutStopSec=10s -p MemoryMax=${memory_limit_mb}M -p OOMScoreAdjust=${oom_score_adjust} --pipe --wait" +options="-p TimeoutStopSec=10s -p MemoryMax=${memory_limit_mb}M -p OOMScoreAdjust=${oom_score_adjust} --wait" # Note: BindsTo will kill this task when the box is stopped. but will not kill this task when restarted! # For this reason, we have code to kill the tasks both on shutdown and startup.