blob: 8391b77489583f7203fa916362951aa3dac09119 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# vim: set ts=4:
crashed=$(doas -n rc-status --crashed)
if [ -n "$crashed" ]; then
echo "CRITICAL - crashed services: ${crashed//$'\n'/, }"
exit 2
else
echo 'OK'
fi
|