fix: enforce single-instance daemon, resolve D-Bus handler loop, integration test ready

This commit is contained in:
Joe Particle 2025-07-16 17:34:55 +00:00
parent 83faa356a1
commit dc124d6da0
2 changed files with 12 additions and 0 deletions

View file

@ -78,6 +78,12 @@
- Made path configuration loading optional with fallback values
- Fixed associative array syntax and error handling
- Status command now works correctly showing system directories and files
- ✅ **Single-Instance Enforcement**: Fixed duplicate D-Bus handler/daemon instance loop
- Systemd and D-Bus single-instance logic now working
- Confirmed only one daemon process runs at a time
- No more 'already a handler' errors
- Integration with apt-layer.sh does not spawn extra daemons
- Ready for full D-Bus integration testing
- 🎯 **D-Bus Method Testing**: Ready to test package management operations
- 🎯 **apt-layer.sh Integration**: Ready to test shell script integration

View file

@ -109,6 +109,12 @@
- Daemon now properly handles concurrent async operations without blocking
- All package management methods (InstallPackages, RemovePackages, etc.) now work correctly
- Fixed duplicate D-Bus handler/daemon instance bug that caused 'already a handler' errors and multiple daemon processes
- Enforced single-instance logic via systemd and D-Bus name ownership
- Confirmed only one daemon process runs at a time, even when triggered by apt-layer.sh
- Integration with apt-layer.sh no longer spawns extra daemons
- Successfully broke the loop and ready for full D-Bus integration testing
### Added
- **Systemd Service Integration**: Complete systemd service setup for apt-ostree daemon
- Created `apt-ostreed.service` with proper security hardening and OSTree integration