mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
ffec78c05b
This takes inspiration from PropagatesReloadTo=, but propagates stop jobs instead of restart jobs. This is defined based on exactly two atoms: UNIT_ATOM_PROPAGATE_STOP + UNIT_ATOM_RETROACTIVE_STOP_ON_STOP. The former ensures that when the unit the dependency is originating from is stopped based on user request, we'll propagate the stop job to the target unit, too. In addition, when the originating unit suddenly stops from external causes the stopping is propagated too. Note that this does *not* include the UNIT_ATOM_CANNOT_BE_ACTIVE_WITHOUT atom (which is used by BoundBy=), i.e. this dependency is purely about propagating "edges" and not "levels", i.e. it's about propagating specific events, instead of continious states. This is supposed to be useful for dependencies between .mount units and their backing .device units. So far we either placed a BindsTo= or Requires= dependency between them. The former gave a very clear binding of the to units together, however was problematic if users establish mounnts manually with different block device sources than our configuration defines, as we there might come to the conclusion that the backing device was absent and thus we need to umount again what the user mounted. By combining Requires= with the new StopPropagatedFrom= (i.e. the inverse PropagateStopTo=) we can get behaviour that matches BindsTo= in every single atom but one: UNIT_ATOM_CANNOT_BE_ACTIVE_WITHOUT is absent, and hence the level-triggered logic doesn't apply. Replaces: #11340 |
||
---|---|---|
.. | ||
fuzz-bus-match | ||
fuzz-bus-message | ||
fuzz-calendarspec | ||
fuzz-catalog | ||
fuzz-dhcp6-client | ||
fuzz-dhcp-server | ||
fuzz-dns-packet | ||
fuzz-env-file | ||
fuzz-fido-id-desc | ||
fuzz-journal-remote | ||
fuzz-journald-audit | ||
fuzz-journald-kmsg | ||
fuzz-journald-native-fd | ||
fuzz-journald-stream | ||
fuzz-journald-syslog | ||
fuzz-json | ||
fuzz-link-parser | ||
fuzz-lldp | ||
fuzz-ndisc-rs | ||
fuzz-netdev-parser | ||
fuzz-network-parser | ||
fuzz-nspawn-oci | ||
fuzz-nspawn-settings | ||
fuzz-systemctl-parse-argv | ||
fuzz-udev-database | ||
fuzz-udev-rules | ||
fuzz-unit-file | ||
fuzz-varlink | ||
fuzz-xdg-desktop | ||
.gitattributes | ||
meson.build |