2.24.2-2: use systemd scriptlets
This commit is contained in:
parent
90488bdc3b
commit
d9d58da0e7
@ -2,7 +2,7 @@
|
|||||||
Summary: A collection of basic system utilities
|
Summary: A collection of basic system utilities
|
||||||
Name: util-linux
|
Name: util-linux
|
||||||
Version: 2.24.2
|
Version: 2.24.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://en.wikipedia.org/wiki/Util-linux
|
URL: http://en.wikipedia.org/wiki/Util-linux
|
||||||
@ -398,6 +398,7 @@ useradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \
|
|||||||
-c "UUID generator helper daemon" uuidd
|
-c "UUID generator helper daemon" uuidd
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# Please, keep uuidd running after installation!
|
||||||
%post -n uuidd
|
%post -n uuidd
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
# Package install,
|
# Package install,
|
||||||
@ -411,10 +412,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%preun -n uuidd
|
%preun -n uuidd
|
||||||
if [ "$1" = 0 ]; then
|
%systemd_preun uuidd.service
|
||||||
/bin/systemctl stop uuidd.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl disable uuidd.service > /dev/null 2>&1 || :
|
%postun
|
||||||
fi
|
%systemd_postun_with_restart uuidd.service
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
@ -807,6 +808,9 @@ fi
|
|||||||
%{_libdir}/python*/site-packages/libmount/*
|
%{_libdir}/python*/site-packages/libmount/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 7 2014 Karel Zak <kzak@redhat.com> 2.24.2-2
|
||||||
|
- use systemd macroized scriptlets (#850355)
|
||||||
|
|
||||||
* Thu Apr 24 2014 Karel Zak <kzak@redhat.com> 2.24.2-1
|
* Thu Apr 24 2014 Karel Zak <kzak@redhat.com> 2.24.2-1
|
||||||
- upgrade to stable release 2.24.2
|
- upgrade to stable release 2.24.2
|
||||||
ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/v2.24.2-ReleaseNotes
|
ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/v2.24.2-ReleaseNotes
|
||||||
|
Loading…
Reference in New Issue
Block a user