summaryrefslogtreecommitdiff
path: root/src/core/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/target.c')
-rw-r--r--src/core/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/target.c b/src/core/target.c
index 68be22b38d..33fb66bc3f 100644
--- a/src/core/target.c
+++ b/src/core/target.c
@@ -137,7 +137,7 @@ static int target_start(Unit *u) {
assert(t->state == TARGET_DEAD);
target_set_state(t, TARGET_ACTIVE);
- return 0;
+ return 1;
}
static int target_stop(Unit *u) {
@@ -147,7 +147,7 @@ static int target_stop(Unit *u) {
assert(t->state == TARGET_ACTIVE);
target_set_state(t, TARGET_DEAD);
- return 0;
+ return 1;
}
static int target_serialize(Unit *u, FILE *f, FDSet *fds) {