Created
July 5, 2021 20:41
-
-
Save andronex/520c66380b538b86313866b974866e0f to your computer and use it in GitHub Desktop.
Перезапуск MySQL в докере при падении
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 | |
a=`ps ax|grep 3310|grep -v grep|wc -l` | |
echo $a | |
if (( "$a" < 1 )); then | |
/usr/bin/docker start 21ab17aeab7b | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment