diff --git a/TODO.md b/TODO.md index c1949d8..41fa7b1 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/src/apt-ostree.py/docs/CHANGELOG.md b/src/apt-ostree.py/docs/CHANGELOG.md index 442db1d..7e3d74e 100644 --- a/src/apt-ostree.py/docs/CHANGELOG.md +++ b/src/apt-ostree.py/docs/CHANGELOG.md @@ -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