systemd: just configure DefaultTasksMax when install
Signed-off-by: Gaoyi <ymuemc@163.com>
This commit is contained in:
parent
dd0debb0fb
commit
04e85d5a28
11
systemd.spec
11
systemd.spec
@ -20,7 +20,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Url: https://www.freedesktop.org/wiki/Software/systemd
|
Url: https://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 246
|
Version: 246
|
||||||
Release: 11
|
Release: 12
|
||||||
License: MIT and LGPLv2+ and GPLv2+
|
License: MIT and LGPLv2+ and GPLv2+
|
||||||
Summary: System and Service Manager
|
Summary: System and Service Manager
|
||||||
|
|
||||||
@ -543,9 +543,8 @@ setfacl -Rnm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal/ &>/de
|
|||||||
# This will fix up enablement of any preset services that got installed
|
# This will fix up enablement of any preset services that got installed
|
||||||
# before systemd due to rpm ordering problems:
|
# before systemd due to rpm ordering problems:
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1647172
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1647172
|
||||||
echo "DefaultTasksMax=80%" >> /etc/systemd/system.conf
|
|
||||||
|
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
|
echo "DefaultTasksMax=80%" >> /etc/systemd/system.conf
|
||||||
systemctl preset-all &>/dev/null || :
|
systemctl preset-all &>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1485,6 +1484,12 @@ fi
|
|||||||
%exclude /usr/share/man/man3/*
|
%exclude /usr/share/man/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 27 2021 gaoyi <ymuemc@163.com> - 246-12
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:just configure DefaultTasksMax when install
|
||||||
|
|
||||||
* Tue Jan 26 2021 extinctfire <shenyining_00@126.com> - 246-11
|
* Tue Jan 26 2021 extinctfire <shenyining_00@126.com> - 246-11
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user