Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gingermat/c88a20e93574738fbb81f1bbc8ebbbcc to your computer and use it in GitHub Desktop.
Save gingermat/c88a20e93574738fbb81f1bbc8ebbbcc to your computer and use it in GitHub Desktop.
Check container process is alive (process periodically update `.up`-file)
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