Commit Graph

3 Commits

Author SHA1 Message Date
db192f2209 fix(monitor): format exception message with XML tags
Improve exception message formatting by adding XML tags for better parsing and processing downstream. The new format includes explicit tags for exception type, service name, and error message.
2026-04-28 20:49:11 +08:00
58a8efc17a refactor(socket): decouple command handling and add message sending
- Move command handler to variable for better flexibility
- Add SendMsg function for sending messages through socket
- Fix missing return statements in command execution
- Improve error handling in monitor exception reporting
2026-04-28 19:55:45 +08:00
f8d3575d60 feat(monitor): add service monitoring functionality with systemd integration
Implement a new monitoring system that tracks service status and logs using systemd commands. The monitor includes:
- Periodic status checks via systemctl
- Log analysis via journalctl
- Thread-safe service tracking
- Error detection and reporting
2026-04-04 18:08:48 +08:00