mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-28 06:25:22 +02:00
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
10 lines
296 B
Bash
10 lines
296 B
Bash
#!/bin/sh
|
|
echo "Checking journalctl for error messages..."
|
|
journalctl_errors="$(journalctl --since '1 day ago' --no-pager | grep -i 'error')"
|
|
if [ ! -z "$journalctl_errors" ]
|
|
then
|
|
echo "Some errors where found: $journalctl_errors"
|
|
exit 1
|
|
fi
|
|
echo "All docker containers are healthy."
|
|
exit 0 |