return 1;
}
-static int sysv_chkconfig_order(Service *s) {
+static int sysv_fix_order(Service *s) {
Meta *other;
int r;
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;
if ((r = unit_add_default_cgroup(u)) < 0)
return r;
- if ((r = sysv_chkconfig_order(s)) < 0)
+ if ((r = sysv_fix_order(s)) < 0)
return r;
if (s->bus_name) {