chiark / gitweb /
core: introduce exit_status_set_is_empty() to make things a bit easier to read
[elogind.git] / src / core / service.c
index be88670bd835fa2b6f5843b4f0146a0557f787bc..0b19767d9e725029327ed5ed1115c0775802aabc 100644 (file)
@@ -335,7 +335,7 @@ static int service_verify(Service *s) {
                 return -EINVAL;
         }
 
-        if (s->type == SERVICE_ONESHOT && !(set_isempty(s->restart_force_status.signal) && set_isempty(s->restart_force_status.status))) {
+        if (s->type == SERVICE_ONESHOT && !exit_status_set_is_empty(&s->restart_force_status)) {
                 log_error_unit(UNIT(s)->id, "%s has RestartForceStatus= set, which isn't allowed for Type=oneshot services. Refusing.", UNIT(s)->id);
                 return -EINVAL;
         }