Skip to content

Instantly share code, notes, and snippets.

@k0nsl
Created April 12, 2017 02:21
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 k0nsl/b800ad754f7db3a9d9167b63aca0fdba to your computer and use it in GitHub Desktop.
Save k0nsl/b800ad754f7db3a9d9167b63aca0fdba to your computer and use it in GitHub Desktop.
#!/bin/bash
err502=`curl -1IsS --ciphers ecdhe_ecdsa_aes_128_sha https://domain.com | grep 502`
if [[ "$err502" == *"502"* ]]; then
/sbin/service php-fpm restart
date >> /site/tools/php-fpm-restart.log
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment