diff options
author | Janis Goldschmidt <github@aberrat.io> | 2022-07-27 11:23:20 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-07-27 17:50:30 +0200 |
commit | 9e670fdc4b4015e348bc68763ed058639b36a113 (patch) | |
tree | 6ede94855f0d5de8143e4ee6feacd23244e87413 /src/core/service.c | |
parent | stub: override StubInfo EFI variable unconditionally, since *we* own it (diff) | |
download | systemd-9e670fdc4b4015e348bc68763ed058639b36a113.tar.xz systemd-9e670fdc4b4015e348bc68763ed058639b36a113.zip |
Use correct option name in error message
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c index 5f1a218bb5..a715a1d1dc 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."); |