[systemd-devel] Q: Wanting a target
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Wed Feb 23 13:40:29 UTC 2022
Hi!
I think there was a recent discussion saying that no unit should Want= or Require= a target, but only use them for ordering.
I have basically three questions:
1) Is the statement above correct?
2) When is a target displayed as "started" by sysctemctl status then?
3: Which of the following (form current SLES12 SP5, grep-style) are wrong?:
/usr/lib/systemd/system/ntpd.service:Wants=network.target
/usr/lib/systemd/system/ntpd.service:After=network.target
/usr/lib/systemd/system/nfs-server.service:Requires= network.target proc-fs-nfsd.mount
/usr/lib/systemd/system/nfs-server.service:After= network.target proc-fs-nfsd.mount rpcbind.socket nfs-mountd.service
/usr/lib/systemd/system/nmb.service:After=network.target
Regards,
Ulrich
More information about the systemd-devel
mailing list