]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Use correct option name in error message
authorJanis Goldschmidt <github@aberrat.io>
Wed, 27 Jul 2022 09:23:20 +0000 (11:23 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 27 Jul 2022 15:50:30 +0000 (16:50 +0100)
src/core/service.c

index 5f1a218bb5beba1a679f0d2340b7343ee0cfb6b1..a715a1d1dc82424be0041750aaaccfb5ee6585fd 100644 (file)
@@ -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.");