icinga2: Install systemd limits from icinga2 tarball

This commit is contained in:
Markus Frosch 2017-11-23 15:27:52 +01:00
parent 03b8ac4d15
commit be668b31f3
2 changed files with 1 additions and 20 deletions

View File

@ -1,9 +0,0 @@
# Icinga 2 sets some default values to extend OS defaults
#
# Please refer to our troubleshooting documentations for details
# and reasons on these values.
[Service]
TasksMax=infinity
# May also cause problems, uncomment if you have any
#LimitNPROC=62883

View File

@ -86,8 +86,6 @@ URL: https://www.icinga.com/
Group: Applications/System
Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
Source1: icinga2.service.limits.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-bin = %{version}-%{release}
@ -375,15 +373,7 @@ make install \
# install custom limits.conf for systemd
%if 0%{?configure_systemd_limits}
# for > 2.8 or > 2.7.2
#install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %%{buildroot}/etc/systemd/system/%%{name}.service.d/limits.conf
install -D -m 0644 %{SOURCE1} %{buildroot}/etc/systemd/system/%{name}.service.d/limits.conf
%endif
# install custom limits.conf for systemd
%if 0%{?configure_systemd_limits}
# for > 2.8 or > 2.7.2
#install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %%{buildroot}/etc/systemd/system/%%{name}.service.d/limits.conf
install -D -m 0644 %{SOURCE1} %{buildroot}/etc/systemd/system/%{name}.service.d/limits.conf
install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %{buildroot}/etc/systemd/system/%{name}.service.d/limits.conf
%endif
# remove features-enabled symlinks