From a65e90caaf818cdfc2fb687021509405295c51bb Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Mon, 15 Jul 2024 13:44:36 -0600 Subject: [PATCH] remove redundant services, add TasksMax= from cloud-final --- systemd/cloud-init-single.service | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/systemd/cloud-init-single.service b/systemd/cloud-init-single.service index 17bbcfc1bb2c..e0c75f002788 100644 --- a/systemd/cloud-init-single.service +++ b/systemd/cloud-init-single.service @@ -1,11 +1,15 @@ +# systemd ordering resources +# ========================== +# https://systemd.io/NETWORK_ONLINE/ +# https://docs.cloud-init.io/en/latest/explanation/boot.html +# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ +# https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html +# https://www.freedesktop.org/software/systemd/man/latest/systemd-remount-fs.service.html [Unit] Description=Cloud-init: Single Process DefaultDependencies=no Wants=network-pre.target After=systemd-remount-fs.service -Before=NetworkManager.service -Before=network-pre.target -Before=shutdown.target Before=sysinit.target Before=cloud-init-local.service Conflicts=shutdown.target @@ -18,6 +22,7 @@ ConditionEnvironment=!KERNEL_CMDLINE=cloud-init=disabled Type=notify ExecStart=/usr/bin/cloud-init --single-process KillMode=process +TasksMax=infinity TimeoutStartSec=infinity # Output needs to appear in instance console output