Created
June 1, 2022 10:50
-
-
Save gingermat/c88a20e93574738fbb81f1bbc8ebbbcc to your computer and use it in GitHub Desktop.
Check container process is alive (process periodically update `.up`-file)
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
is_alive() { | |
test -f .up && find .up -fstype local -mmin -1 | |
}; | |
echo $(is_alive) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment