This solves the problem with Systemd >= 226 and fork errors with
Icinga 2. Seen on SLES 11 SP2.
fixes #4918
refs #5477
or set it to `infinity`:
- [root@icinga2-master1.localdomain /]# vim /usr/lib/systemd/system/icinga2.service
+ [root@icinga2-master1.localdomain /]# cp /usr/lib/systemd/system/icinga2.service /etc/systemd/system/icinga2.service
+ [root@icinga2-master1.localdomain /]# vim /etc/systemd/system/icinga2.service
[Service]
Please note that this setting is available since Systemd version 226.
+> **Note**
+>
+> Future versions of Icinga 2 will add the setting as default.
+
### Late Check Results <a id="late-check-results"></a>
[Icinga Web 2](https://www.icinga.com/products/icinga-web-2/) provides
PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload @ICINGA2_SYSCONFIGFILE@
TimeoutStartSec=30m
+# Introduced in Systemd 226, defaults to 512. Icinga 2 requires more tasks (checks, notifications, etc.)
+DefaultTasksMax=infinity
[Install]
WantedBy=multi-user.target