An open API service indexing awesome lists of open source software.

https://github.com/lfkdev/apache_failfix.service

automatically fix broken apache site-configs and bring apache back to running state
https://github.com/lfkdev/apache_failfix.service

Last synced: about 1 year ago
JSON representation

automatically fix broken apache site-configs and bring apache back to running state

Awesome Lists containing this project

README

          

# apache_failfix.service
systemd unit.service and bash script to fix and restart apache after failed start/state

[![Lizenz](https://img.shields.io/github/license/lfkdev/apache_failfix.service)](https://github.com/lfkdev/apache_failfix.service)


illustration

Either use an override file or just place the onFailure line in your apache2.service
```
$ systemctl edit (--full) apache2.service
```

After that just place the script in /usr/local/bin/ (or wherever you like) and create the apache_failfix.service
```
$ systemctl --full --force apache_failfix.service
```
and paste the content in it (or copy the file from the repo to /etc/systemd/system/apache_failfix.service (debian/ubntu))
now after an apache restart, next time your apache fails it will restart automatically

note: if you want to recieve an email when this unit got triggered you have to adjust the bash file (where the mail comment is)