Skip to content

Commit c190646

Browse files
Spencer Bryngelsonclaude
andcommitted
fix: cd into runner dir before start so CWD-based discovery works
start_runner() was launching run.sh via absolute path without cd-ing into the runner directory first. The Runner.Listener process inherited the SSH login shell CWD (user home dir), so find_pids() CWD matching always failed for runners started this way. Fix: cd into $dir before running ./run.sh so the process CWD matches what find_pids() expects. Relative log path follows automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a557e7e commit c190646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

misc/frontier/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ find_node() {
9292
start_runner() {
9393
local node="$1" dir="$2"
9494
timeout 15 ssh $SSH_OPTS "$node" \
95-
"setsid nohup $dir/run.sh >> $dir/runner.log 2>&1 < /dev/null &" \
95+
"cd $dir && setsid nohup ./run.sh >> runner.log 2>&1 < /dev/null &" \
9696
</dev/null 2>/dev/null || true
9797
sleep 3
9898
[ -n "$(find_pids "$node" "$dir")" ]

0 commit comments

Comments
 (0)