]> git.ipfire.org Git - thirdparty/systemd.git/commit
job: Don't discard propagated restart jobs when unit is activating 24404/head
authorAndrew Stone <a@stne.dev>
Mon, 22 Aug 2022 22:03:42 +0000 (15:03 -0700)
committerAndrew Stone <a@stne.dev>
Thu, 25 Aug 2022 23:38:23 +0000 (16:38 -0700)
commitdc06321fe3e44915b732248bbf93d01b2bb7819a
tree9c2ab9533ec4f0a05b138dd643a747a9fd184766
parent01532c2d16ba62406362dcb4bae5030e05fd6502
job: Don't discard propagated restart jobs when unit is activating

When a service unit Requires= a socket, and the socket is restarted while the
service is in state=activating, the propagated restart is being discarded. This
is contrary to the documentation for Requires=, which states "this unit will be
stopped (or restarted) if one of the other units is explicitly stopped (or
restarted)".
src/core/job.c
test/testsuite-03.units/always-activating.service [new file with mode: 0644]
test/testsuite-03.units/always-activating.socket [new file with mode: 0644]
test/units/testsuite-03.sh