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