Skip to content

Implement graceful shutdown on power button event.#756

Open
susienme wants to merge 1 commit intogoogle:mainfrom
susienme:graceful_shutdown_by_launcher
Open

Implement graceful shutdown on power button event.#756
susienme wants to merge 1 commit intogoogle:mainfrom
susienme:graceful_shutdown_by_launcher

Conversation

@susienme
Copy link
Copy Markdown
Collaborator

This change enables the launcher to monitor for hardware power button events (ACPI shutdown) and propagate a SIGTERM signal to the container workload for a graceful shutdown.

  • Added a Linux input event listener to detect power button presses.
  • Integrated the listener into the launcher.
  • Added automated tests including a test workload to verify that graceful shutdown triggers the expected cleanup messages in logs.

This change enables the launcher to monitor for hardware power button events (ACPI shutdown) and propagate a SIGTERM signal to the container workload for a graceful shutdown.

- Added a Linux input event listener to detect power button presses.
- Integrated the listener into the launcher.
- Added automated tests including a test workload to verify that graceful shutdown triggers the expected cleanup messages in logs.
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