[Unit] Description=Monitor MySQL Service After=network.target [Service] ExecStart=/usr/local/bin/check_mysql.sh Restart=always RestartSec=5 [Install] WantedBy=multi-user.target