diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-20 13:17:22 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-20 13:17:22 +0100 |
commit | e2f3b44cfc8864bfea7c77ff4c383ce9b535f27e (patch) | |
tree | 81dc25605f9493c5f32b596556a3736f55fb9bb0 /src/unit.c | |
parent | f8d0ceb46b8c617abce8eaf99812ca7f4ce1c658 (diff) |
service: when reloading a service fails don't fail the entire service but just the reload job
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unit.c b/src/unit.c index 7d673e138d..9dd02676e3 100644 --- a/src/unit.c +++ b/src/unit.c @@ -1067,7 +1067,7 @@ static void retroactively_stop_dependencies(Unit *u) { unit_check_unneeded(other); } -void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { +void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_success) { dual_timestamp ts; bool unexpected; @@ -1134,7 +1134,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { if (u->meta.job->state == JOB_RUNNING) { if (ns == UNIT_ACTIVE) - job_finish_and_invalidate(u->meta.job, true); + job_finish_and_invalidate(u->meta.job, reload_success); else if (ns != UNIT_ACTIVATING && ns != UNIT_RELOADING) { unexpected = true; |