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
- Host: GitHub
- URL: https://github.com/lfkdev/apache_failfix.service
- Owner: lfkdev
- License: apache-2.0
- Created: 2020-03-16T23:13:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T15:00:09.000Z (about 6 years ago)
- Last Synced: 2025-01-12T16:36:59.295Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apache_failfix.service
systemd unit.service and bash script to fix and restart apache after failed start/state
[](https://github.com/lfkdev/apache_failfix.service)
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)