Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
units: add timeout to all services
Browse files Browse the repository at this point in the history
Since coreos-cloudinit's internal service scheduling is opaque to
systemd and doesn't handle dependency-loop detection, it is possible for
it to cause deadlocks. Introducing the timeout to all invocations
provides a mechanism for system to regain control of the startup
sequence.
  • Loading branch information
crawford committed Sep 13, 2016
1 parent 6cffb83 commit 38b8a27
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions units/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ ConditionFileNotEmpty=%f

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
ExecStart=/usr/bin/coreos-cloudinit --from-file=%f
1 change: 1 addition & 0 deletions units/user-cloudinit-proc-cmdline.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ConditionKernelCommandLine=cloud-config-url

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/coreos-cloudinit --from-proc-cmdline
1 change: 1 addition & 0 deletions units/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ConditionFileNotEmpty=%f

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/coreos-cloudinit --from-file=%f
1 change: 1 addition & 0 deletions units/user-config-ovfenv.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ After=user-config-vmw-tools.service

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/coreos-cloudinit --from-vmware-ovf-env=/media/ovfenv/ovf-env.xml
1 change: 1 addition & 0 deletions units/user-configdrive.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ After=oem-cloudinit.service

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/coreos-cloudinit --from-configdrive=/media/configdrive
1 change: 1 addition & 0 deletions units/user-configvirtfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Before=user-config.target

[Service]
Type=oneshot
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/coreos-cloudinit --from-configdrive=/media/configvirtfs

0 comments on commit 38b8a27

Please sign in to comment.