Posts by Newton • 11 points
1 post
-
1
votes1
answer383
viewsA: Script to restart MYSQL automatically when falling?
#!/bin/bash # mysql_check.sh UP=$(pgrep mysql | wc -l); if [ "$UP" -ne 1 ]; then sudo service mysql restart fi
1 post
1
votes1
answer383
views#!/bin/bash # mysql_check.sh UP=$(pgrep mysql | wc -l); if [ "$UP" -ne 1 ]; then sudo service mysql restart fi