Skip to content

feat: Improved start and stop logic#1758

Merged
kroese merged 57 commits into
masterfrom
dev
Jun 4, 2026
Merged

feat: Improved start and stop logic#1758
kroese merged 57 commits into
masterfrom
dev

Conversation

@kroese

@kroese kroese commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 20:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the container’s QEMU start/shutdown flow to centralize PID handling and improve shutdown behavior, while also bumping the QEMU base image version.

Changes:

  • Standardize PID file variables for Samba/WSDD components and reuse them when starting/stopping services.
  • Rework QEMU startup output handling in entry.sh and update shutdown/trap logic in power.sh (new SHUTDOWN/TIMEOUT controls).
  • Update the Docker base layer to qemux/qemu:7.32.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/samba.sh Introduces PID file variables and reuses them for cleanup and wsddn startup.
src/power.sh Refactors graceful shutdown/trap handling and consolidates process cleanup.
src/entry.sh Changes QEMU launch to a FIFO-based output path when SHUTDOWN is enabled.
Dockerfile Bumps QEMU base image version from 7.31 to 7.32.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/power.sh
[ -n "${QEMU_TIMEOUT:-}" ] && TIMEOUT="$QEMU_TIMEOUT"

_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
_trap graceful_shutdown SIGTERM SIGHUP SIGABRT SIGQUIT
@kroese kroese changed the title feat: Improved start and shutdown logic feat: Improved start and stop logic Jun 4, 2026
@kroese kroese merged commit 8d2f27b into master Jun 4, 2026
5 checks passed
@kroese kroese deleted the dev branch June 4, 2026 20:37
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.

2 participants