enable lastlog2-import.service
This commit is contained in:
parent
7d135acec2
commit
164a6760ec
1 changed files with 9 additions and 7 deletions
|
|
@ -489,24 +489,26 @@ find %{buildroot}%{_mandir}/man8 -regextype posix-egrep \
|
|||
mv -v %{buildroot}/usr/sbin/* %{buildroot}/usr/bin/
|
||||
%endif
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post fstrim.{service,timer}
|
||||
|
||||
### Enable after completing migration to lastlog2
|
||||
# %post -n liblastlog2
|
||||
# %systemd_post lastlog2-import.service
|
||||
#
|
||||
# %postun -n liblastlog2
|
||||
# %systemd_postun lastlog2-import.service
|
||||
###
|
||||
%post -n liblastlog2
|
||||
%systemd_post lastlog2-import.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun fstrim.{service,timer}
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart fstrim.timer
|
||||
%systemd_postun fstrim.service
|
||||
|
||||
%postun -n liblastlog2
|
||||
%systemd_postun lastlog2-import.service
|
||||
|
||||
|
||||
# Please, keep uuidd running after installation! Note that systemd_post is
|
||||
# "systemctl preset" and it enable/disable service only.
|
||||
%post -n uuidd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue