github.com/didip/deis@v1.4.1/deisctl/units/deis-store-metadata.service (about)

     1  [Unit]
     2  Description=deis-store-metadata
     3  
     4  [Service]
     5  EnvironmentFile=/etc/environment
     6  TimeoutStartSec=20m
     7  ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/store-metadata` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE"
     8  ExecStartPre=/bin/sh -c "docker inspect deis-store-metadata >/dev/null 2>&1 && docker rm -f deis-store-metadata || true"
     9  ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/store-metadata` && docker run --name deis-store-metadata --rm -e HOST=$COREOS_PRIVATE_IPV4 --net host $IMAGE"
    10  ExecStopPost=-/usr/bin/docker stop deis-store-metadata
    11  Restart=on-failure
    12  RestartSec=5
    13  
    14  [Install]
    15  WantedBy=multi-user.target
    16  
    17  [X-Fleet]
    18  Global=true