Automated Database Restart

January 21st, 2024 – 7:41 pm
Tagged as: Computing Note

Here is a script that checks to ensure the database is running and restarts the service if it is not running.  This was used on a very low memory server to ensure a database remained operational, despite it sometimes crashing due to out of memory errors. #!/bin/bash timestamp="$(date)" systemctl stop httpd && echo "${timestamp}" Stopping [...]