summaryrefslogtreecommitdiffstats
path: root/src/core/service.c
diff options
context:
space:
mode:
authorJanis Goldschmidt <github@aberrat.io>2022-07-27 11:23:20 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-07-27 17:50:30 +0200
commit9e670fdc4b4015e348bc68763ed058639b36a113 (patch)
tree6ede94855f0d5de8143e4ee6feacd23244e87413 /src/core/service.c
parentstub: override StubInfo EFI variable unconditionally, since *we* own it (diff)
downloadsystemd-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.c2
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.");