Comment # 16 on bug 1155690 from
(In reply to �������� ������������ from comment #15)
> Where and how to specify these options?
> sudo systemctl edit systemd-networkd-wait-online.service ?

If you look at the unit file behind that service,
/usr/lib/systemd/system/systemd-networkd-wait-online.service, you see that it
has this line:

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online

This refers to the executable from the man page in comment 14, there we want to
add the options. Now if you edit this file, your changes will be overwritten by
the next systemd update. So instead we use the drop-in mechanism [1]: create a
directory /etc/systemd/system/systemd-networkd-wait-online.service.d and a file
in that directory with ending .conf and content

[Service]
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online <options>

where you add your options. Then check with

systemctl cat systemd-networkd-wait-online.service
systemctl show systemd-networkd-wait-online.service

that your options appear. Maybe you'll have to run "systemctl daemon-reload"
first.

[1] https://www.freedesktop.org/software/systemd/man/systemd.unit.html


You are receiving this mail because: