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