From 076e3ee16d626b89dbac3661cfd365bba50c9bcb Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 4 Jun 2024 11:57:33 -0500 Subject: [PATCH] Update minute replication liveness --- images/replication-job/liveness.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 images/replication-job/liveness.sh diff --git a/images/replication-job/liveness.sh b/images/replication-job/liveness.sh new file mode 100644 index 00000000..c343c24e --- /dev/null +++ b/images/replication-job/liveness.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# This is a script for the complex evaluation of whether Osmosis or other processes are running in the container. +if [ $(ps -ef | grep -E 'java' | grep -v grep | wc -l) -ge 1 ]; then + echo "Osmosis is running." + exit 0 +else + echo "Osmosis is not running!" 1>&2 + exit 1 +fi