Rearrange logging for NSCD daemon.

https://fedorahosted.org/freeipa/ticket/1373

When SSSD is in use, we actually trying to disable NSCD daemon. Telling
that we failed to configure automatic _startup_ of the NSCD is wrong then.
This commit is contained in:
Alexander Bokovoy 2011-07-01 11:11:38 +03:00 committed by Rob Crittenden
parent 0359e2a043
commit 824ec7e3a2

View File

@ -929,9 +929,12 @@ def main():
try:
nscd_chkconfig_cmd('nscd')
except:
print >>sys.stderr, "Failed to configure automatic startup of the NSCD daemon"
if not options.sssd:
print >>sys.stderr, "Failed to configure automatic startup of the NSCD daemon"
print >>sys.stderr, "Caching of users/groups will not be available after reboot"
else:
print >>sys.stderr, "Failed to disable NSCD daemon. Please disable it manually."
else:
# this is optional service, just log
logging.info("NSCD daemon is not installed, skip configuration")