Skip to content

Conversation

@JanZachmann
Copy link
Contributor

@JanZachmann JanZachmann commented Nov 18, 2025

Replace the login1-based reboot implementation with a systemd unit-based
approach using reboot.target. This removes the dependency on the login1
D-Bus interface and aligns the reboot operation with existing systemd unit
management patterns in the codebase.

@JanZachmann JanZachmann force-pushed the refactor-reboot branch 2 times, most recently from fd44bfe to adc2c4c Compare November 18, 2025 15:09
Replace the login1-based reboot implementation with a systemd unit-based
approach using reboot.target. This removes the dependency on the login1
D-Bus interface and aligns the reboot operation with existing systemd unit
management patterns in the codebase.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann JanZachmann changed the title refactor: remove login1 dependency, use systemd1 Manager for reboot refactor: remove login1 dependency, use reboot.target for reboot Nov 18, 2025
@JanZachmann JanZachmann merged commit a852d1d into omnect:main Nov 18, 2025
6 checks passed
JanZachmann added a commit to JanZachmann/omnect-device-service that referenced this pull request Nov 23, 2025
Complete the migration from login1.Manager.Reboot to reboot.target
by updating the bash scripts that were missed in omnect#181. This ensures
consistent reboot behavior across all code paths (Rust and bash) and
proper systemd shutdown ordering.

Changes:
- systemd/omnect-device-service.exec_stop_post.sh: Replace dbus-send
  to login1 with systemctl start reboot.target
- systemd/update-validation-observer.sh: Replace dbus-send to login1
  with systemctl start reboot.target
- Bump version to 0.41.14

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
JanZachmann added a commit to JanZachmann/omnect-device-service that referenced this pull request Nov 23, 2025
Complete the migration from login1.Manager.Reboot to reboot.target
by updating the bash scripts that were missed in omnect#181. This ensures
consistent reboot behavior across all code paths (Rust and bash) and
proper systemd shutdown ordering.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
JanZachmann added a commit that referenced this pull request Nov 24, 2025
## Summary

Complete the migration from `login1.Manager.Reboot` to `reboot.target`
by updating the bash scripts that were missed in #181. This ensures
consistent reboot behavior across all code paths (Rust and bash) and
proper systemd shutdown ordering.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
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.

3 participants