mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
Merge pull request #14527 from poettering/socket-state-fix
core: propagate service state to socket in more load states
This commit is contained in:
commit
79bb680cbf
@ -3257,7 +3257,12 @@ static void socket_trigger_notify(Unit *u, Unit *other) {
|
||||
assert(other);
|
||||
|
||||
/* Filter out invocations with bogus state */
|
||||
if (other->load_state != UNIT_LOADED || other->type != UNIT_SERVICE)
|
||||
if (!IN_SET(other->load_state,
|
||||
UNIT_LOADED,
|
||||
UNIT_NOT_FOUND,
|
||||
UNIT_BAD_SETTING,
|
||||
UNIT_ERROR,
|
||||
UNIT_MASKED) || other->type != UNIT_SERVICE)
|
||||
return;
|
||||
|
||||
/* Don't propagate state changes from the service if we are already down */
|
||||
|
Loading…
Reference in New Issue
Block a user