Steve Yegge
3f4f7cc185
Implement bd daemon command with production-ready improvements
- Add bd daemon command for background git sync (bd-273)
- Implement PID file management with atomic creation (O_EXCL)
- Add session detachment (Setsid) to survive terminal closure
- Implement graceful shutdown with SIGTERM/SIGINT/SIGHUP handling
- Add context cancellation and per-sync timeouts (2min)
- Use secure file permissions (0600 for PID/log, 0700 for .beads)
- Add startup confirmation before reporting success
- Implement interval validation and comprehensive error handling
- Add full test coverage for daemon lifecycle
- Update README.md with daemon documentation
All oracle review recommendations implemented.
Resolves: bd-273
Amp-Thread-ID: https://ampcode.com/threads/T-117c4016-b25d-462a-aa75-6060df4b2892
Co-authored-by: Amp <amp@ampcode.com>
2025-10-16 13:10:19 -07:00
..
2025-10-16 01:13:08 -07:00
2025-10-16 13:10:19 -07:00
2025-10-16 13:10:19 -07:00
2025-10-13 22:34:12 -07:00
2025-10-15 14:52:29 -07:00
2025-10-15 17:19:16 -07:00
2025-10-14 01:19:03 -07:00
2025-10-15 02:57:10 -07:00
2025-10-15 20:09:24 -07:00
2025-10-15 00:43:59 -07:00
2025-10-15 17:51:09 -07:00
2025-10-15 23:38:47 -07:00
2025-10-15 23:51:57 -07:00
2025-10-16 00:49:41 -07:00
2025-10-16 12:23:14 -07:00
2025-10-14 13:21:08 -07:00
2025-10-15 23:38:47 -07:00
2025-10-14 01:10:18 -07:00
2025-10-12 01:17:50 -07:00
2025-10-15 17:06:59 -07:00
2025-10-15 16:31:11 -07:00
2025-10-16 12:43:43 -07:00
2025-10-15 12:47:26 -07:00