Created
April 12, 2017 02:21
-
-
Save k0nsl/b800ad754f7db3a9d9167b63aca0fdba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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