Skip to content

Commit

Permalink
remove redundant services, add TasksMax= from cloud-final
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Jul 15, 2024
1 parent e25c542 commit a65e90c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions systemd/cloud-init-single.service
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit a65e90c

Please sign in to comment.