From 6b71313b95965b1172b6066d5bba17386b10e4a7d6a0d3f945d9fe31daeb3049 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 19 Nov 2020 14:31:07 +0000 Subject: [PATCH] - Issue a daemon-reload in %post of the main package OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-default-settings?expand=0&rev=12 --- systemd-default-settings.changes | 5 +++++ systemd-default-settings.spec | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/systemd-default-settings.changes b/systemd-default-settings.changes index 8bd8081..fb3fd77 100644 --- a/systemd-default-settings.changes +++ b/systemd-default-settings.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 19 14:29:34 UTC 2020 - Franck Bui + +- Issue a daemon-reload in %post of the main package + ------------------------------------------------------------------- Thu Nov 19 06:26:27 UTC 2020 - Franck Bui diff --git a/systemd-default-settings.spec b/systemd-default-settings.spec index 377a264..3a48bfd 100644 --- a/systemd-default-settings.spec +++ b/systemd-default-settings.spec @@ -84,6 +84,13 @@ find %{buildroot} -name 20-defaults-SUSE.conf -printf "/%%P\n" >>SUSE.list find %{buildroot} -name 25-defaults-SLE.conf -printf "/%%P\n" >SLE.list find %{buildroot} -name 25-defaults-openSUSE.conf -printf "/%%P\n" >openSUSE.list +%post +# Reloading PID1 is probably not enough as some changes will require +# service restarts or even a reboot. But it might be useful in a few +# cases so... +[ -x /usr/bin/systemctl ] && + /usr/bin/systemctl systemctl daemon-reload || : + %files -f SUSE.list %defattr(-,root,root)