From: Janis Goldschmidt Date: Wed, 27 Jul 2022 09:23:20 +0000 (+0200) Subject: Use correct option name in error message X-Git-Tag: v252-rc1~567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e670fdc4b4015e348bc68763ed058639b36a113;p=thirdparty%2Fsystemd.git Use correct option name in error message --- diff --git a/src/core/service.c b/src/core/service.c index 5f1a218bb5b..a715a1d1dc8 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -600,7 +600,7 @@ static int service_verify(Service *s) { return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(ENOEXEC), "Service has Restart= set to either always or on-success, which isn't allowed for Type=oneshot services. Refusing."); if (s->type == SERVICE_ONESHOT && !exit_status_set_is_empty(&s->restart_force_status)) - return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(ENOEXEC), "Service has RestartForceStatus= set, which isn't allowed for Type=oneshot services. Refusing."); + return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(ENOEXEC), "Service has RestartForceExitStatus= set, which isn't allowed for Type=oneshot services. Refusing."); if (s->type == SERVICE_ONESHOT && s->exit_type == SERVICE_EXIT_CGROUP) return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(ENOEXEC), "Service has ExitType=cgroup set, which isn't allowed for Type=oneshot services. Refusing.");