From 247883643081e2740d0ca9d85ca58057e70d12b5 Mon Sep 17 00:00:00 2001 From: William Brown Date: Fri, 1 Dec 2017 09:52:55 +0100 Subject: [PATCH] Ticket 49449 - Load sysctl values on rpm upgrade. Bug Description: We provide sysctl values. We should apply them on upgrade or installation to prevent a need to reboot. Fix Description: Add a post install script to load the sysctl values from the system as they wolud be on a reboot. Note this may not work in all cases (ie mock, container etc) so we have to mask failures "just in case". https://pagure.io/389-ds-base/issue/49449 Author: wibrown Review by: ??? --- rpm/389-ds-base.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm/389-ds-base.spec.in b/rpm/389-ds-base.spec.in index 19c4f14..7938d16 100644 --- a/rpm/389-ds-base.spec.in +++ b/rpm/389-ds-base.spec.in @@ -396,6 +396,9 @@ if ! getent passwd $USERNAME >/dev/null ; then fi fi +# Reload our sysctl before we restart (if we can) +sysctl --system &> $output; true + %if %{use_perl} # START UPGRADE SCRIPT echo looking for instances in %{_sysconfdir}/%{pkgname} > $output 2>&1 || : -- 1.8.3.1