Last active
August 29, 2015 14:02
-
-
Save jmakeig/16262de4448c521056f3 to your computer and use it in GitHub Desktop.
Bell notification when a MarkLogic restart has completed
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
#!/usr/bin/env bash | |
# Need the max-time so it will actually retry in a reasonable amount of time | |
until curl -fsS \ | |
--max-time 1 \ | |
--digest --user admin:'********' \ | |
--head \ | |
http://localhost:8001/admin/v1/timestamp | |
do | |
sleep 2 | |
done | |
# Ding! | |
echo -e '\a' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment