Skip to content
Snippets Groups Projects
Commit dfb52852 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Log message indicating that stdout/err are closed when daemonized.

Change-Id: I4e314b414f0ce94ff691f00a461653350b10370e
parent 2679f1f4
No related branches found
No related tags found
No related merge requests found
......@@ -633,9 +633,13 @@ static int cmd_start(int argc, char *argv[], unsigned flags)
/* Execute command */
if (has_flag(flags, F_INTERACTIVE)) {
log_server_info("Running in interactive mode.\n");
fflush(stderr);
fflush(stdout);
} else {
log_server_info("Starting as daemon, 'stdout' and 'stderr' log "
"sinks will be closed.\n");
}
fflush(stderr);
fflush(stdout);
if ((rc = cmd_exec(args, args_c)) < 0) {
pid_remove(pidfile);
rc = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment