- Replace manual systemd scriptlets with macroized scriptlets

(#850129)
This commit is contained in:
Jeff Law 2012-08-21 09:47:24 -06:00
parent 31474e7c11
commit f8556b4c45
1 changed files with 7 additions and 12 deletions

View File

@ -27,7 +27,7 @@
Summary: The GNU libc libraries
Name: glibc
Version: %{glibcversion}
Release: 4%{?dist}
Release: 5%{?dist}
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@ -1223,24 +1223,16 @@ getent passwd nscd >/dev/null ||
-c "NSCD Daemon" -u 28 -g nscd nscd
%post -n nscd
if test $1 -eq 1; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%systemd_post nscd.service
%preun -n nscd
if test $1 -eq 0; then
/bin/systemctl --no-reload disable nscd.service > /dev/null 2>&1 || :
/bin/systemctl stop nscd.service > /dev/null 2>&1 || :
fi
%systemd_preun nscd.service
%postun -n nscd
if test $1 = 0; then
/usr/sbin/userdel nscd > /dev/null 2>&1 || :
fi
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if test $1 -ge 1; then
/bin/systemctl try-restart nscd.service >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart nscd.service
%if %{xenpackage}
%post xen -p /sbin/ldconfig
@ -1355,6 +1347,9 @@ rm -f *.filelist*
%endif
%changelog
* Tue Aug 21 2012 Jeff Law <law@redhat.com> - 2.16.90-5
- Replace manual systemd scriptlets with macroized scriptlets (#850129)
* Mon Aug 20 2012 Jeff Law <law@redhat.com> - 2.16.90-4
- Move /etc/localtime into glibc-common package since glibc-common
owns the scriptlets which update it.