Skip to content

Instantly share code, notes, and snippets.

@jmakeig
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmakeig/16262de4448c521056f3 to your computer and use it in GitHub Desktop.
Save jmakeig/16262de4448c521056f3 to your computer and use it in GitHub Desktop.
Bell notification when a MarkLogic restart has completed
#!/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