diff --git a/icinga2.service.limits.conf b/icinga2.service.limits.conf deleted file mode 100644 index ad24f7e..0000000 --- a/icinga2.service.limits.conf +++ /dev/null @@ -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 diff --git a/icinga2.spec b/icinga2.spec index 764e2fb..029ac27 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -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