apache2 – monitor & restart

#selfhosting #wordpress or some other domain? … okay, then you need to make sure that your server stays running and that uptime is maximized. Let’s create two simple shell scripts that check the status of the apache2 web server, and restart that service if needed. First, create apache-notify.sh: sudo touch /usr/local/bin/apache-notify.sh sudo chmod 750 /usr/local/bin/apache-notify.sh…

Close
JavaScript licenses