github.com/didip/deis@v1.4.1/deisctl/units/deis-logspout.service (about) 1 [Unit] 2 Description=deis-logspout 3 Requires=docker.socket etcd.service 4 After=docker.socket etcd.service 5 6 [Service] 7 EnvironmentFile=/etc/environment 8 TimeoutStartSec=20m 9 ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/logspout` && docker history $IMAGE >/dev/null || docker pull $IMAGE" 10 ExecStartPre=/bin/sh -c "docker inspect deis-logspout >/dev/null && docker rm -f deis-logspout || true" 11 ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/logspout` && docker run --name deis-logspout --rm -v /var/run/docker.sock:/tmp/docker.sock -e ETCD_HOST=$COREOS_PRIVATE_IPV4 -e HOST=$COREOS_PRIVATE_IPV4 -e DEBUG=1 $IMAGE" 12 ExecStopPost=-/usr/bin/docker rm -f deis-logspout 13 Restart=on-failure 14 RestartSec=5 15 16 [Install] 17 WantedBy=multi-user.target 18 19 [X-Fleet] 20 Global=true