forked from pool/systemd-rpm-macros
- 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:
parent
f65be0ea90
commit
f90fb4cf4f
@ -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 \
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user