github.com/didip/deis@v1.4.1/deisctl/units/deis-store-volume.service (about) 1 [Unit] 2 Description=deis-store-volume 3 4 [Service] 5 EnvironmentFile=/etc/environment 6 ExecStartPre=/usr/bin/mkdir -p /var/lib/deis/store 7 ExecStartPre=/bin/sh -c "echo waiting for store-monitor... && until etcdctl get /deis/store/monSetupComplete >/dev/null 2>&1; do sleep 2; done" 8 ExecStartPre=/bin/bash -c "HOSTS=`etcdctl ls /deis/store/hosts | cut -d/ -f5 | awk '{if(NR == 1) {printf $0} else {printf \",\"$0}}'` && cat /proc/mounts |grep '/var/lib/deis/store' || mount -t ceph $HOSTS:/ /var/lib/deis/store -o name=admin,secret=`etcdctl get /deis/store/adminKeyring | grep 'key =' | cut -d' ' -f3`" 9 ExecStart=/usr/bin/tail -f /dev/null 10 ExecStartPost=/bin/sh -c "test -d /var/lib/deis/store/logs || mkdir -p /var/lib/deis/store/logs" 11 ExecStopPost=-/usr/bin/umount /var/lib/deis/store 12 Restart=on-failure 13 RestartSec=5 14 15 [Install] 16 WantedBy=multi-user.target 17 18 [X-Fleet] 19 Global=true