nextcloud-cronjob/scripts/healthcheck.sh

10 lines
277 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -x
# Make sure cron daemon is still running
2023-11-09 09:04:49 +01:00
# shellcheck disable=SC2009
ps -o comm | grep crond || exit 1
# Make sure the target container is still running/available
docker inspect -f '{{.State.Running}}' "$(/find-container.sh)" | grep true || exit 1