Re: Systemd scriptlet comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 06/03/2011 10:02 PM, Ville Skyttä wrote:
> Some comments on systemd scriptlets at

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 ||:

packaging mailing list

[Home]     [Fedora Legacy]     [Fedora Desktop]     [Red Hat 9 Bible]     [Fedora Bible]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux