Date: | Sat, 24 Apr 2010 11:38:45 -0400 |
From: | Jeff Blaine <jblaine@kickflop.net> |
To: | krb5-bugs@mit.edu |
Subject: | patch against trunk/src/kdc/main.c for more logging info |
Log more stuff, it only happens once per process start...
Index: src/kdc/main.c
===================================================================
--- src/kdc/main.c (revision 23930)
+++ src/kdc/main.c (working copy)
@@ -670,6 +670,7 @@
argv[0], optarg);
exit(1);
}
+ krb5_klog_syslog (LOG_INFO, "initialized realm %s",
optarg);
kdc_realmlist[kdc_numrealms] = rdatap;
kdc_numrealms++;
free(db_args), db_args=NULL, db_args_size = 0;
@@ -789,6 +790,8 @@
com_err(argv[0], retval, "while initializing KDC replay cache
'%s'",
rcname);
exit(1);
+ } else {
+ krb5_klog_syslog (LOG_INFO, "initialized replay cache");
}
#endif
@@ -971,7 +974,7 @@
}
krb5_klog_syslog(LOG_INFO, "commencing operation");
if (nofork)
- fprintf(stderr, "%s: starting...\n", kdc_progname);
+ fprintf(stderr, "%s: starting without forking...\n", kdc_progname);
if ((retval = listen_and_process(0, kdc_progname,
reset_for_hangup))) {
kdc_err(kcontext, retval, "while processing network requests");
errout++;
Index: src/kdc/main.c
===================================================================
--- src/kdc/main.c (revision 23930)
+++ src/kdc/main.c (working copy)
@@ -670,6 +670,7 @@
argv[0], optarg);
exit(1);
}
+ krb5_klog_syslog (LOG_INFO, "initialized realm %s",
optarg);
kdc_realmlist[kdc_numrealms] = rdatap;
kdc_numrealms++;
free(db_args), db_args=NULL, db_args_size = 0;
@@ -789,6 +790,8 @@
com_err(argv[0], retval, "while initializing KDC replay cache
'%s'",
rcname);
exit(1);
+ } else {
+ krb5_klog_syslog (LOG_INFO, "initialized replay cache");
}
#endif
@@ -971,7 +974,7 @@
}
krb5_klog_syslog(LOG_INFO, "commencing operation");
if (nofork)
- fprintf(stderr, "%s: starting...\n", kdc_progname);
+ fprintf(stderr, "%s: starting without forking...\n", kdc_progname);
if ((retval = listen_and_process(0, kdc_progname,
reset_for_hangup))) {
kdc_err(kcontext, retval, "while processing network requests");
errout++;