core: go to failure state if the main service process fails and RemainAfterExit=yes...
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Jun 2018 09:35:25 +0000 (11:35 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Jun 2018 09:35:25 +0000 (11:35 +0200)
commitec5b1452ac73e41274f9b3ca401f813fa079b9f0
treea77fd62ca8f7da277a74b122db7e90942abb41ff
parent8150acb16090e5213eea68679eb5aaba868cb570
core: go to failure state if the main service process fails and RemainAfterExit=yes (#9159)

Previously, we'd not care about failures that were seen earlier and
remain in "exited" state. This could be triggered if the main process of
a service failed while ExecStartPost= was still running, as in that case
we'd not immediately act on the main process failure because we needed
to wait for ExecStartPost= to finish, before acting on it.

Fixes: #8929
src/core/service.c