{"id":2123,"date":"2024-11-13T11:08:32","date_gmt":"2024-11-13T03:08:32","guid":{"rendered":"https:\/\/www.yusian.com\/blog\/?p=2123"},"modified":"2024-11-13T11:08:32","modified_gmt":"2024-11-13T03:08:32","slug":"solution-to-slow-boot-time-systemd-networkd-wait-online-service","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/article\/2024\/11\/13\/1108322123.html","title":{"rendered":"Solution to slow boot time (systemd-networkd-wait-online.service)"},"content":{"rendered":"<pre><code class=\"language-code line-numbers\">#  SPDX-License-Identifier: LGPL-2.1-or-later\n#\n#  This file is part of systemd.\n#\n#  systemd is free software; you can redistribute it and\/or modify it\n#  under the terms of the GNU Lesser General Public License as published by\n#  the Free Software Foundation; either version 2.1 of the License, or\n#  (at your option) any later version.\n\n[Unit]\nDescription=Wait for Network to be Configured\nDocumentation=man:systemd-networkd-wait-online.service(8)\nConditionCapability=CAP_NET_ADMIN\nDefaultDependencies=no\nConflicts=shutdown.target\nBindsTo=systemd-networkd.service\nAfter=systemd-networkd.service\nBefore=network-online.target shutdown.target\n\n[Service]\nType=oneshot\nExecStart=\/usr\/lib\/systemd\/systemd-networkd-wait-online\nRemainAfterExit=yes\n\n[Install]\nWantedBy=network-online.target\n\n<\/code><\/pre>\n<p>modify the ExecStart line to blow:<\/p>\n<pre><code class=\"language-code line-numbers\">ExecStart=\/usr\/lib\/systemd\/systemd-networkd-wait-online --interface=eth0\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p># SPDX-License-Identifier: LGPL-2.1-or-later # # This file is part of systemd. # # systemd is free software; you can redistribute it and\/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[386,1],"tags":[8,446,323],"class_list":["post-2123","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-article","tag-linux","tag-systemd","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=2123"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2123\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=2123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=2123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=2123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}