Apache: Check kalau apache mati & restart automatis
Revision as of 18:45, 8 April 2018 by Onnowpurbo (talk | contribs) (Created page with "Script #!/bin/bash if [ `pgrep apache2 -c` -le "0" ]; then /etc/init.d/apache2 restart fi Masukan ke crontab */5 * * * * /usr/local/bin/check-apache2.sh")
Script
#!/bin/bash if [ `pgrep apache2 -c` -le "0" ]; then /etc/init.d/apache2 restart fi
Masukan ke crontab
*/5 * * * * /usr/local/bin/check-apache2.sh