Skip to content

Commit

Permalink
Update minute replication liveness
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jun 4, 2024
1 parent 8cf67bb commit 076e3ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/replication-job/liveness.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 076e3ee

Please sign in to comment.