On 06/03/2011 10:02 PM, Ville Skyttä wrote:
I have another comment on the snippets. It seems to me like there is no
daemon-reload when we're updating to systemd-enabled package the first
time (i.e. we're removing init scripts and installing systemd unit files
the first time -- daemon-reload is really needed after this operation).
I thinkg we should call daemon-reload in %triggerrun too, or am I
missing something?
This is my proposed change:
%triggerun -- httpd < 1.0-2
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply httpd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save httpd >/dev/null 2>&1 ||:
Honza