--- a/nscd.c
+++ b/nscd.c
@@ -2522,6 +2522,9 @@
 			conffile = optarg;
 			break;
 		case 'i':
+			debug &= ~D_DAEMON;
+            if (opt_d_cnt != 0)
+                debug |= (((1U << opt_d_cnt+1) >> 1) - 1) & L_ALL;
 			/* invalidate */
 			special_op(optarg); /* exits */
 		case 'K':
