c->cpu_sched_policy = SCHED_OTHER;
c->syslog_priority = LOG_DAEMON|LOG_INFO;
c->mount_flags = MS_SHARED;
+
+ c->std_input = EXEC_INPUT_NULL;
+ c->std_output = EXEC_OUTPUT_SYSLOG;
+ c->std_error = EXEC_OUTPUT_SYSLOG;
}
void exec_context_done(ExecContext *c) {
s->valid_no_process = true;
s->kill_mode = KILL_PROCESS_GROUP;
+ /* For SysV services log output should go to the console */
+ s->exec_context.std_input = EXEC_INPUT_NULL;
+ s->exec_context.std_output = EXEC_OUTPUT_TTY;
+ s->exec_context.std_error = EXEC_OUTPUT_TTY;
+
u->meta.load_state = UNIT_LOADED;
r = 0;