3
0

- daemon-reload is not needed in %service_add_post

Applying presets, ie enabling/disabling units, doesn't require to
  update units loaded in PID1 memory. It's actually needed after but
  it's done only once by %service_del_postun.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=56
This commit is contained in:
Franck Bui 2020-11-23 20:19:37 +00:00 committed by Git OBS Bridge
parent f65be0ea90
commit f90fb4cf4f
2 changed files with 9 additions and 3 deletions

View File

@ -84,9 +84,6 @@ fi \
#
%service_add_post() \
if [ -x /usr/bin/systemctl ]; then \
# FIXME: why is this needed ? \
/usr/bin/systemctl daemon-reload || : \
\
if [ $1 -eq 1 ]; then \
/usr/bin/systemctl preset %{?*} || : \
else \

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Nov 23 16:48:05 UTC 2020 - Franck Bui <fbui@suse.com>
- daemon-reload is not needed in %service_add_post
Applying presets, ie enabling/disabling units, doesn't require to
update units loaded in PID1 memory. It's actually needed after but
it's done only once by %service_del_postun.
-------------------------------------------------------------------
Fri Nov 20 06:34:57 UTC 2020 - Franck Bui <fbui@suse.com>