fix: improve dockcheck cron job logging and reliability

- Added comprehensive logging to /var/log/dockcheck/dockcheck.log
- Created wrapper script to avoid cron variable escaping issues
- Added timestamp logging for each execution with exit codes
- Created proper log directory with correct permissions
- Removed unnecessary -n flag (config file handles DontUpdate=true)
- Added cron handlers for service management

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-06-20 10:30:51 -06:00
parent 2cc05a19e6
commit 85cfca08f5
3 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
# Handler to restart systemd-journald service
- name: restart rsyslog
systemd:
name: systemd-journald
state: restarted