-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minute replication files - liveness check (#332)
* Update minute replication liveness * Add livenessProbe for minute replication * Update initialDelaySeconds for minute rep * Update permission for liveness - minute rep
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters