Skip to content

Instantly share code, notes, and snippets.

@varlen
Created November 11, 2022 21:57
Show Gist options
  • Save varlen/a4ba46571e9e177bc37891d8dd04bbd9 to your computer and use it in GitHub Desktop.
Save varlen/a4ba46571e9e177bc37891d8dd04bbd9 to your computer and use it in GitHub Desktop.
#!/bin/bash
response=$(curl --write-out '%{http_code}' --silent --output /dev/null <address>)
if [ "$response" != "200" ]; then
reboot
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment