10 lines
301 B
Bash
Executable File
10 lines
301 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
# shellcheck disable=SC1091
|
|
source "${AGENT_PATH}/common.sh"
|
|
_check_required_env_vars "SERVER" "SERVICE" "CONTAINER_NAME"
|
|
|
|
_is_container_running "$CONTAINER_NAME" || _die "Service is not running - did not find container $CONTAINER_NAME."
|
|
|
|
echo "Service is healthy"
|
|
exit 0 |