#### https://superuser.com/questions/611197/auto-restart-mysql-when-it-dies #### # cat /root/auto-restart.bash systemctl is-active mysql || echo start-it && systemctl start mysql # tail /etc/crontab * * * * * root bash /root/auto-restart.bash