From 20d708afd7ac0b81878581d3d968c9aee96d26219bd80a7aaa4a375e11730e56 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 28 Jun 2012 19:42:24 +0000 Subject: [PATCH] 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 --- glibc.changes | 5 +++++ glibc.spec | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/glibc.changes b/glibc.changes index 7dc494a..c59a978 100644 --- a/glibc.changes +++ b/glibc.changes @@ -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 diff --git a/glibc.spec b/glibc.spec index ecc0995..2a78fdc 100644 --- a/glibc.spec +++ b/glibc.spec @@ -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