Try lowering the sleep on the shutdown timeout to avoid the service dispatch timeout built into systemd.

This commit is contained in:
Jake Moshenko 2014-12-23 17:42:47 -05:00
parent ec87e37d8c
commit ccb19571d6

View file

@ -35,4 +35,4 @@ coreos:
ExecStartPre=/usr/bin/docker login -u {{ quay_username }} -p {{ quay_password }} -e unused quay.io
ExecStart=/usr/bin/docker run --rm --net=host --name quay-builder --privileged --env-file /root/overrides.list -v /var/run/docker.sock:/var/run/docker.sock quay.io/coreos/registry-build-worker:latest
ExecStop=/usr/bin/docker stop quay-builder
ExecStopPost=/bin/sh -xc "/bin/sleep 600; /usr/bin/systemctl --no-block poweroff"
ExecStopPost=/bin/sh -xc "/bin/sleep 120; /usr/bin/systemctl --no-block poweroff"