Skip to content

Conversation

@JanZachmann
Copy link
Contributor

@JanZachmann JanZachmann commented Nov 19, 2025

Problem

The current reboot implementation causes the service to stop immediately when reboot.target starts, preventing the D-Bus call from completing. This causes functions that call reboot to hang and fail to respond to callers.

Solution

Spawn the reboot operation in a background task with a configurable delay. This allows:

  • The reboot function to return immediately
  • The service to respond to the D-Bus caller
  • The actual reboot to trigger after a short delay (default 100ms)

@JanZachmann JanZachmann force-pushed the fix-reboot-delay branch 3 times, most recently from f8a8311 to 0eb7a4f Compare November 19, 2025 21:49
The current reboot implementation causes the service to stop immediately
when reboot.target starts, preventing the D-Bus call from completing.
This causes functions that call reboot to hang and fail to respond to callers.

Solution: Spawn the reboot operation in a background task with a configurable
delay, allowing the reboot function to return immediately and the service to
respond to the caller before the system shuts down.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann JanZachmann merged commit 6b3a71d into omnect:main Nov 20, 2025
3 checks passed
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