return 1;
}
- log_show_color(true);
+ if (label_init() < 0)
+ goto finish;
+
+ log_show_color(isatty(STDERR_FILENO) > 0);
log_show_location(false);
log_set_max_level(LOG_INFO);
/* Disable nscd, to avoid deadlocks when systemd uses
* NSS and the nscd socket is maintained by us. */
- if (nss_disable_nscd) {
- log_debug("Disabling nscd");
- nss_disable_nscd();
- } else
- log_debug("Hmm, can't disable nscd.");
+ /* if (nss_disable_nscd) { */
+ /* log_debug("Disabling nscd"); */
+ /* nss_disable_nscd(); */
+ /* } else */
+ /* log_debug("Hmm, can't disable nscd."); */
if (!serialization) {
if (arg_show_status)
if (getpid() == 1)
freeze();
+ label_finish();
+
return retval;
}