Lines 211-216
static void usage(void) {
|
Link Here
|
---|
|
211 |
fprintf(stderr, "Usage: univention-directory-listener [options]\n"); |
211 |
fprintf(stderr, "Usage: univention-directory-listener [options]\n"); |
212 |
fprintf(stderr, "Options:\n"); |
212 |
fprintf(stderr, "Options:\n"); |
213 |
fprintf(stderr, " -d debugging\n"); |
213 |
fprintf(stderr, " -d debugging\n"); |
|
|
214 |
fprintf(stderr, " -n no function debugging\n"); |
214 |
fprintf(stderr, " -F run in foreground (intended for process supervision)\n"); |
215 |
fprintf(stderr, " -F run in foreground (intended for process supervision)\n"); |
215 |
fprintf(stderr, " -H LDAP server URI\n"); |
216 |
fprintf(stderr, " -H LDAP server URI\n"); |
216 |
fprintf(stderr, " -h LDAP server address\n"); |
217 |
fprintf(stderr, " -h LDAP server address\n"); |
Lines 350-355
int main(int argc, char *argv[]) {
|
Link Here
|
---|
|
350 |
univention_ldap_parameters_t *lp_local; |
351 |
univention_ldap_parameters_t *lp_local; |
351 |
char *server_role; |
352 |
char *server_role; |
352 |
int debugging = 0; |
353 |
int debugging = 0; |
|
|
354 |
bool debug_function = true; |
353 |
bool from_scratch = false; |
355 |
bool from_scratch = false; |
354 |
bool foreground = false; |
356 |
bool foreground = false; |
355 |
bool initialize_only = false; |
357 |
bool initialize_only = false; |
Lines 359-365
int main(int argc, char *argv[]) {
|
Link Here
|
---|
|
359 |
struct stat stbuf; |
361 |
struct stat stbuf; |
360 |
char cache_mdb_dir[PATH_MAX]; |
362 |
char cache_mdb_dir[PATH_MAX]; |
361 |
|
363 |
|
362 |
univention_debug_init("stderr", 1, 1); |
364 |
univention_debug_init("stderr", UV_DEBUG_FLUSH, UV_DEBUG_FUNCTION); |
363 |
|
365 |
|
364 |
{ |
366 |
{ |
365 |
struct timeval timeout = { |
367 |
struct timeval timeout = { |
Lines 405-410
int main(int argc, char *argv[]) {
|
Link Here
|
---|
|
405 |
case 'd': |
407 |
case 'd': |
406 |
debugging = atoi(optarg); |
408 |
debugging = atoi(optarg); |
407 |
break; |
409 |
break; |
|
|
410 |
case 'n': |
411 |
debug_function = false; |
412 |
break; |
408 |
case 'F': |
413 |
case 'F': |
409 |
foreground = true; |
414 |
foreground = true; |
410 |
break; |
415 |
break; |
Lines 487-492
int main(int argc, char *argv[]) {
|
Link Here
|
---|
|
487 |
|
492 |
|
488 |
univention_debug_set_level(UV_DEBUG_LISTENER, debugging); |
493 |
univention_debug_set_level(UV_DEBUG_LISTENER, debugging); |
489 |
univention_debug_set_level(UV_DEBUG_LDAP, debugging); |
494 |
univention_debug_set_level(UV_DEBUG_LDAP, debugging); |
|
|
495 |
univention_debug_set_function(debug_function ? UV_DEBUG_FUNCTION: UV_DEBUG_NO_FUNCTION); |
490 |
|
496 |
|
491 |
{ |
497 |
{ |
492 |
char filename[PATH_MAX]; |
498 |
char filename[PATH_MAX]; |