Skip to content

fix: use systemd-first pattern for socat proxy in record_waa_demos#61

Closed
abrichr wants to merge 1 commit into
mainfrom
fix/socat-systemd-first-pattern
Closed

fix: use systemd-first pattern for socat proxy in record_waa_demos#61
abrichr wants to merge 1 commit into
mainfrom
fix/socat-systemd-first-pattern

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 2, 2026

Summary

  • _auto_start_socat in record_waa_demos.py was using a legacy nohup-only approach while run_dc_eval.py:_setup_eval_proxy already had the systemd-first pattern
  • Now tries socat-waa-evaluate.service first (auto-restarts on failure), falls back to nohup for older VMs
  • Returns False on failure instead of always returning True

Context

This fix was supposed to be part of PR #57 but the PR was merged before the commit was pushed. This is a clean follow-up from main.

Test plan

  • Verify on VM with systemd service installed: uses systemctl restart
  • Verify on older VM without service: falls back to nohup

🤖 Generated with Claude Code

Match the pattern from run_dc_eval.py:_setup_eval_proxy — try
socat-waa-evaluate.service first (auto-restarts on failure), fall back
to legacy nohup for older VMs. Also return False on failure instead of
always returning True.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abrichr
Copy link
Copy Markdown
Member Author

abrichr commented Mar 2, 2026

Note: PR #62 (feat/recording-persistence) includes this same socat systemd-first fix as part of a larger change set. If #62 merges first, this PR becomes redundant and can be closed. If this merges first, #62 will need a trivial rebase.

@abrichr
Copy link
Copy Markdown
Member Author

abrichr commented Mar 2, 2026

Closing: PR #62 merged with the same socat systemd-first fix plus recording persistence changes.

@abrichr abrichr closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant