github.com/blystad/deis@v0.11.0/router/systemd/deis-router@.service (about) 1 [Unit] 2 Description=deis-router 3 4 [Service] 5 EnvironmentFile=/etc/environment 6 TimeoutStartSec=20m 7 ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/router`; docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE" 8 ExecStartPre=/bin/sh -c "docker inspect deis-router >/dev/null 2>&1 && docker rm -f deis-router || true" 9 ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/router` && docker run --name deis-router --rm -p 80:80 -p 2222:2222 -e PUBLISH=80 -e HOST=$COREOS_PRIVATE_IPV4 $IMAGE" 10 ExecStopPost=/usr/bin/docker stop deis-router 11 12 [Install] 13 WantedBy=multi-user.target 14 15 [X-Fleet] 16 X-Conflicts=deis-router@*.service