systemd should restart icinga2 automatically #5721
Labels
area/setup
Installation, systemd, sample files
wontfix
Deprecated, not supported or not worth any effort
Usually icinga2 is a mission critical part of infrastructure and should be online at all times. In case of a recoverable crash (e.g. OOM) icinga2 should be restarted automatically. Of course it would be useful to monitor/log/alert the automatic restarts to investigate them afterwards.
Expected Behavior
Systemd should try to restart icinga2 in case of an unexpected crash.
Current Behavior
If icinga2 crashes it will stay in failed state until manual intervention.
Possible Solution
We currently override the systemd service with a drop-in file in
/etc/systemd/system/icinga2.service.d/override.conf
which contains:The place for a solution is https://github.com/Icinga/icinga2/blob/master/etc/initsystem/icinga2.service.cmake#L5. It would be necessary to include the changes in the packaging repository, e.g. https://github.com/Icinga/icinga-packaging/blob/deb/release/icinga2/ubuntu/debian/icinga2-common.icinga2.service#L5.
Steps to Reproduce (for bugs)
killall icinga2
Your Environment
icinga2 --version
): r2.7.1-1I guess different people have a different opinion about automatic service restarts, so we can use this ticket for a discussion. If you approve the changes I would be ready to implement it and to provide a pull request.
The text was updated successfully, but these errors were encountered: