Skip to content

Route runner.service stdout/stderr to serial console#13

Merged
guifranchi merged 1 commit into
mainfrom
fix/runner-service-output
May 22, 2026
Merged

Route runner.service stdout/stderr to serial console#13
guifranchi merged 1 commit into
mainfrom
fix/runner-service-output

Conversation

@guifranchi

@guifranchi guifranchi commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • config.sh and run.sh output was being sent to the systemd journal inside the VM, invisible to us — the console log only showed systemd's own startup/shutdown messages
  • Add StandardOutput=journal+console and StandardError=journal+console so the runner's output appears in console.log (captured from Firecracker's stdout via ttyS0)
  • Fix Restart=neverRestart=no (never is not a valid systemd restart specifier; systemd was already ignoring it and logging a warning at boot)

Context

The VM boots, runner.service starts, and exits within ~2 seconds — triggering ExecStopPost=+/usr/sbin/reboot. We can see the service starts successfully but can't see why it exits. This change makes config.sh/run.sh output visible in the per-slot console.log file so the next boot cycle will reveal the actual failure.

config.sh and run.sh output was going to the systemd journal inside the
VM (invisible to us). Adding StandardOutput=journal+console sends it to
ttyS0 so it lands in console.log where we can see why the runner exits.

Also fixes Restart=never → Restart=no (never is not a valid specifier;
systemd was already ignoring it and logging a warning).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@guifranchi guifranchi self-assigned this May 21, 2026
@guifranchi guifranchi added the bug label May 21, 2026
@backlog-helper

Copy link
Copy Markdown

Hi @guifranchi,

We've found some issues with your Pull Request.

  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@guifranchi
guifranchi merged commit 7ce12d3 into main May 22, 2026
1 check passed
@guifranchi
guifranchi deleted the fix/runner-service-output branch May 22, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant