X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fservice.c;h=2f699cd1e66a582e9c7f0653594b6ce2c6d18a01;hp=2fcb304e86d7bffbcfae02627e6f5a842687d19b;hb=01f78473b104d28db0fa813414092bc6358ae521;hpb=d017c6ca11ff48f8b39e7a16e139c4809ed1536e diff --git a/src/service.c b/src/service.c index 2fcb304e8..2f699cd1e 100644 --- a/src/service.c +++ b/src/service.c @@ -57,7 +57,7 @@ static const struct { { "rc5.d", SPECIAL_RUNLEVEL5_TARGET, RUNLEVEL_UP }, { "rc6.d", SPECIAL_RUNLEVEL6_TARGET, RUNLEVEL_DOWN }, - /* SuSE style boot.d */ + /* SUSE style boot.d */ { "boot.d", SPECIAL_BASIC_TARGET, RUNLEVEL_BASIC }, /* Debian style rcS.d */ @@ -632,11 +632,6 @@ static int service_load_sysv_path(Service *s, const char *path) { 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; @@ -681,7 +676,7 @@ static int service_load_sysv_name(Service *s, const char *name) { free(path); if (r >= 0 && UNIT(s)->meta.load_state == UNIT_STUB) { - /* Try Suse style boot.xxx init scripts */ + /* Try SUSE style boot.xxx init scripts */ if (asprintf(&path, "%s/boot.%s", *p, name) < 0) return -ENOMEM; @@ -1713,7 +1708,7 @@ static int service_start(Unit *u) { /* Make sure we don't enter a busy loop of some kind. */ if (!ratelimit_test(&s->ratelimit)) { log_warning("%s start request repeated too quickly, refusing to start.", u->meta.id); - return -EAGAIN; + return -ECANCELED; } s->failure = false;