diff options
author | Matthew Miller <mattdm@mattdm.org> | 2010-08-31 00:23:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-31 00:23:34 +0200 |
commit | fdf20a316035779bbec469e11d73c7544acbf30f (patch) | |
tree | c99f2d7a60e5816ff554c48bcfbe497d0c22a30d /src/job.c | |
parent | 74ac3cbd509de2f5995542aa5db39328e8cbd22a (diff) |
manager: add missing second part of s/maintenance/failed/
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -271,7 +271,7 @@ bool job_type_is_redundant(JobType a, UnitActiveState b) { case JOB_STOP: return b == UNIT_INACTIVE || - b == UNIT_MAINTENANCE; + b == UNIT_FAILED; case JOB_VERIFY_ACTIVE: return @@ -417,7 +417,7 @@ int job_run_and_invalidate(Job *j) { case JOB_RESTART: { UnitActiveState t = unit_active_state(j->unit); - if (t == UNIT_INACTIVE || t == UNIT_MAINTENANCE || t == UNIT_ACTIVATING) { + if (t == UNIT_INACTIVE || t == UNIT_FAILED || t == UNIT_ACTIVATING) { j->type = JOB_START; r = unit_start(j->unit); } else @@ -427,7 +427,7 @@ int job_run_and_invalidate(Job *j) { case JOB_TRY_RESTART: { UnitActiveState t = unit_active_state(j->unit); - if (t == UNIT_INACTIVE || t == UNIT_MAINTENANCE || t == UNIT_DEACTIVATING) + if (t == UNIT_INACTIVE || t == UNIT_FAILED || t == UNIT_DEACTIVATING) r = -ENOEXEC; else if (t == UNIT_ACTIVATING) { j->type = JOB_START; |