mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
12 lines
177 B
Bash
12 lines
177 B
Bash
#!/bin/sh
|
|
# vim: set ts=4:
|
|
|
|
crashed=$(sudo rc-status --crashed)
|
|
|
|
if [ -n "$crashed" ]; then
|
|
echo "CRITICAL - crashed services: ${crashed//$'\n'/, }"
|
|
exit 2
|
|
else
|
|
echo 'OK'
|
|
fi
|