[Bug 1155690] nginx starts faster than the network and need Requires=network.target
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1155690
http://bugzilla.suse.com/show_bug.cgi?id=1155690#c16
--- Comment #16 from Aaron Puchert
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: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com