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

     1  [Unit]
     2  Description=deis-logger
     3  Requires=deis-store-volume.service
     4  After=deis-store-volume.service
     5  
     6  [Service]
     7  EnvironmentFile=/etc/environment
     8  TimeoutStartSec=20m
     9  ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/logger` && docker history $IMAGE >/dev/null || docker pull $IMAGE"
    10  ExecStartPre=/bin/sh -c "docker inspect deis-logger >/dev/null && docker rm -f deis-logger || true"
    11  ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/logger` && docker run --name deis-logger --rm -p 514:514/udp -e EXTERNAL_PORT=514 -e HOST=$COREOS_PRIVATE_IPV4 -v /var/lib/deis/store:/data $IMAGE"
    12  ExecStopPost=-/usr/bin/docker rm -f deis-logger
    13  Restart=on-failure
    14  RestartSec=5
    15  
    16  [Install]
    17  WantedBy=multi-user.target