- 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
This commit is contained in:
Franck Bui 2020-11-19 14:31:07 +00:00 committed by Git OBS Bridge
parent 74f08877c3
commit 6b71313b95
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 19 14:29:34 UTC 2020 - Franck Bui <fbui@suse.com>
- Issue a daemon-reload in %post of the main package
-------------------------------------------------------------------
Thu Nov 19 06:26:27 UTC 2020 - Franck Bui <fbui@suse.com>

View File

@ -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)