]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: unify deps between service and socket units
authorMike Yuan <me@yhndnzj.com>
Wed, 30 Apr 2025 19:05:02 +0000 (21:05 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 30 Apr 2025 19:27:37 +0000 (21:27 +0200)
commite803ec1e253a2d6593c3a7cc075f6f0bc4e696ac
tree7d9646ca6387f15c48def7a40d8546e9d61bcd55
parent366dd4a662dac18c1a5beabb8f0c4c576a378206
units: unify deps between service and socket units

The current arrangement of service and socket units is
sort of all over the place. Let's clean it up a little,
roughly following the principles below:

- socket units have implicit ordering deps (not to be confused
  with default ones which are subject to DefaultDependencies=)
  before associated service, so drop any explicit After=

- If socket can be enabled, remember to link to it in service
  via Also= and Sockets= (the latter replaces Wants=).
  If the service Requires= socket however, Sockets= is omitted.

- If socket is statically enabled, no need for service
  to pull it in - machined
units/systemd-importd.service.in
units/systemd-machined.service.in
units/systemd-mountfsd.service.in
units/systemd-networkd.service.in
units/systemd-nsresourced.service.in
units/systemd-oomd.service.in
units/systemd-resolved.service.in
units/systemd-userdbd.service.in