Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd: Add DefaultTasksMax=infinity to service file #5477

Merged
merged 1 commit into from
Aug 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion doc/15-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ In order to solve the problem, increase the value for `DefaultTasksMax`
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]

Expand All @@ -335,6 +336,10 @@ or set it to `infinity`:

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
Expand Down
2 changes: 2 additions & 0 deletions etc/initsystem/icinga2.service.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -d -e ${ICINGA2_ERROR_LOG}
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