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