diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2016-10-20 15:27:37 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-10-21 15:13:50 +0200 |
commit | 87a47f99bc8e576a63581ad2593c62eb10a53814 (patch) | |
tree | 2b0e504ecf3fc82d01ac615afe917e1f0153c0f5 /src/core/service.c | |
parent | 6fa441140ee6faf131c97b1aa002e060b81aaaff (diff) |
failure-action: generalize failure action to emergency action
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c index f9127d7509..5b92c901e3 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1455,7 +1455,7 @@ static void service_enter_dead(Service *s, ServiceResult f, bool allow_restart) if (s->result != SERVICE_SUCCESS) { log_unit_warning(UNIT(s), "Failed with result '%s'.", service_result_to_string(s->result)); - failure_action(UNIT(s)->manager, s->failure_action, UNIT(s)->reboot_arg); + emergency_action(UNIT(s)->manager, s->emergency_action, UNIT(s)->reboot_arg, "service failed"); } if (allow_restart && service_shall_restart(s)) { |