summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 15:50:31 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 15:50:31 +0200
commit55ebf98cbecdad288ba2e3f63f7026280c62f025 (patch)
tree76db71ebb10129436002fc98483f0a34c42288e6 /src/core
parentce4a52a500965ae6c2f95787f5346112ed56bbae (diff)
core: introduce exit_status_set_is_empty() to make things a bit easier to read
Diffstat (limited to 'src/core')
-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 be88670bd8..0b19767d9e 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -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;
}