From 39de31542ef374299b8b59dbc3db6218121bc8a1 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 19 Aug 2007 09:16:16 +0000 Subject: only restart nscd on configure git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@349 ef36b2f9-881f-0410-afb5-c4e39611909c --- debian/libnss-ldapd.postinst | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'debian/libnss-ldapd.postinst') diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst index 6e572b7..d141f23 100644 --- a/debian/libnss-ldapd.postinst +++ b/debian/libnss-ldapd.postinst @@ -231,13 +231,9 @@ then # TODO: create backups of /etc/nsswitch.conf and configfile # (probably store orig in tmpfile and if diff install it # as backup) -fi - -# restart nscd to pick up changes in nsswitch.conf -# (other processes will have to be restarted manually) -if [ -s /usr/sbin/nscd ] -then - if [ `pidof -s nscd` ] + # restart nscd to pick up changes in nsswitch.conf + # (other processes will have to be restarted manually) + if [ -s /usr/sbin/nscd ] && [ `pidof -s nscd` ] then if which invoke-rc.d >/dev/null 2>&1 then -- cgit v1.2.3