Created
October 10, 2017 14:46
-
-
Save xdtianyu/365ce82bdecf2d8649626b8095351a80 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
ping -c 1 10.200.0.1 | |
if [ "$?" -eq 0 ];then | |
echo "$(date) --> OK" | |
else | |
echo "$(date) --> ERROR" | |
/etc/init.d/shadowvpn-cn restart | |
fi |
Author
xdtianyu
commented
Oct 10, 2017
-
-
-
-
- /root/bin/ping.sh >>/tmp/ping.log 2>&1
-
-
-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment