mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-25 02:57:39 +02:00
icinga2: Install systemd limits from icinga2 tarball
This commit is contained in:
parent
acd3092625
commit
81f6a59d28
@ -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
|
|
12
icinga2.spec
12
icinga2.spec
@ -86,8 +86,6 @@ URL: https://www.icinga.com/
|
|||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
|
Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
Source1: icinga2.service.limits.conf
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: %{name}-bin = %{version}-%{release}
|
Requires: %{name}-bin = %{version}-%{release}
|
||||||
|
|
||||||
@ -375,15 +373,7 @@ make install \
|
|||||||
# install custom limits.conf for systemd
|
# install custom limits.conf for systemd
|
||||||
%if 0%{?configure_systemd_limits}
|
%if 0%{?configure_systemd_limits}
|
||||||
# for > 2.8 or > 2.7.2
|
# 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 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
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# remove features-enabled symlinks
|
# remove features-enabled symlinks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user