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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user