core: propagate service state to socket in more load states
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 10:51:40 +0000 (11:51 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 16:27:08 +0000 (17:27 +0100)
commit7549dd40fc52fc6b45f07fd8ade6d0a478461545
treee34bcc9cac2a504298febcf7688c73e94e1c10c3
parentaf6df343b2309ab4308c4dbf5bf538923126e40f
core: propagate service state to socket in more load states

It makes sense to filter state changes for some load states that
shouldn't happen, but the common cases should be accepted, because they
might happen during runtime when "systemctl daemon-reload" is issued and
unit files changed state in between. Otherwise we lose events.

Fixes: #4708
(cherry picked from commit 4c2ef3276735ad9f7fccf33f5bdcbe7d8751e7ec)
(cherry picked from commit 14164ec6bc7779201e6ea16c8e8ccff4f98bb4cd)
src/core/socket.c