themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to restart Apache automatically after crash

sudo vi /lib/systemd/system/apache2.service

make following changes:

 [Unit]
+StartLimitIntervalSec=300
+StartLimitBurst=5

 [Service]
-Restart=on-abort
+Restart=on-failure
+RestartSec=1s