diff options
| author | diogo464 <[email protected]> | 2025-06-19 09:26:48 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-06-19 09:26:48 +0100 |
| commit | 000607fdd40887f3735281e0383d8f6c80a3d382 (patch) | |
| tree | 18c33da32cf7cfe5a7efb8340b9bdbdb26827956 /GOAL.md | |
| parent | 1c2e20c56d7fdbb0f7b21d12137ec7d58cd839c8 (diff) | |
Store command in PID file and display in list/status output
- Add PidFileData struct to represent PID file contents
- Store both PID and command in PID file (first line: PID, remaining lines: command args)
- Implement write_to_file() and read_from_file() methods for structured data handling
- Update run_daemon() to write command alongside PID
- Update all functions to use PidFileData instead of raw PID parsing:
- is_process_running()
- stop_daemon()
- list_daemons() - now shows actual command instead of "N/A"
- status_daemon() - shows command in detailed output
- clean_orphaned_files()
- Add command_string() method for formatted display
- Maintain backward compatibility with error handling for invalid PID files
- All tests pass, command display works correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'GOAL.md')
0 files changed, 0 insertions, 0 deletions
