Accepting request 126486 from home:a_jaeger:my-factory-packages

Remove nscd.socket

OBS-URL: https://build.opensuse.org/request/show/126486
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=196
This commit is contained in:
Andreas Jaeger 2012-06-28 19:42:24 +00:00 committed by Git OBS Bridge
parent 1126e969f4
commit 20d708afd7
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 28 18:46:30 UTC 2012 - aj@suse.de
- Remove not anymore existing nscd.socket.
-------------------------------------------------------------------
Thu Jun 28 12:33:50 UTC 2012 - aj@suse.de

View File

@ -1079,11 +1079,18 @@ done
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
%preun -n nscd
%stop_on_removal nscd
%post -n nscd
%{insserv_force_if_yast nscd}
mkdir -p /var/run/nscd
# Previously we had nscd.socket, remove it
test -x /usr/bin/systemctl && /usr/bin/systemctl stop nscd.socket || :
test -x /usr/bin/systemctl && /usr/bin/systemctl disable nscd.socket || :
# Hard removal in case the above did not work
rm -f /etc/systemd/system/sockets.target.wants/nscd.socket
exit 0
%postun -n nscd
%restart_on_update nscd