Skip to content

Instantly share code, notes, and snippets.

@yuryroot
Created October 16, 2019 12:56
Embed
What would you like to do?
#!/usr/bin/env bash
LAST_UPDATED_MINUTES=2
(find /tmp/ -iname "web-healthy" -cmin -$LAST_UPDATED_MINUTES | egrep -q ".*") || curl --fail http://localhost:$WEB_LISTEN/heartbeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment