Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
exit(1);
}
- ctdb_set_child_logging(ctdb);
+ if (do_fork) {
+ ctdb_set_child_logging(ctdb);
+ }
TALLOC_FREE(ctdb->srv);
if (srvid_init(ctdb, &ctdb->srv) != 0) {
ctdb_set_flags(ctdb, CTDB_FLAG_TORTURE);
}
+ /* Log to stderr when running as interactive */
+ if (interactive) {
+ options.logging = "file:";
+ }
+
/* Initialize logging and set the debug level */
if (!ctdb_logging_init(ctdb, options.logging, options.debuglevel)) {
exit(1);