diff --git a/buildman/templates/cloudconfig.yaml b/buildman/templates/cloudconfig.yaml index 18c0732ef..bee09a67a 100644 --- a/buildman/templates/cloudconfig.yaml +++ b/buildman/templates/cloudconfig.yaml @@ -77,3 +77,12 @@ coreos: Where=/var/lib/docker Type=btrfs Options=loop,discard + - name: machine-lifetime.service + command: start + enable: yes + content: | + [Unit] + Description=Machine Lifetime Service + [Service] + Type=oneshot + ExecStart=/bin/sh -xc "/bin/sleep 10800; /usr/bin/systemctl --no-block poweroff"