Skip to content

Commit

Permalink
Merge pull request deis#2379 from carmstrong/pr-2363
Browse files Browse the repository at this point in the history
fix(deisctl/units): mount deis-store only if it isn't mounted
  • Loading branch information
carmstrong committed Nov 4, 2014
2 parents 26761df + cbf38e5 commit fe46f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deisctl/units/deis-store-volume.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description=deis-store-volume
EnvironmentFile=/etc/environment
ExecStartPre=/usr/bin/mkdir -p /var/lib/deis/store
ExecStartPre=/bin/sh -c "echo waiting for store-monitor... && until etcdctl get /deis/store/monSetupComplete >/dev/null 2>&1; do sleep 2; done"
ExecStartPre=/bin/bash -c "HOSTS=`etcdctl ls /deis/store/hosts | cut -d/ -f5 | awk '{if(NR == 1) {printf $0} else {printf \",\"$0}}'` && mount -t ceph $HOSTS:/ /var/lib/deis/store -o name=admin,secret=`etcdctl get /deis/store/adminKeyring | grep 'key =' | cut -d' ' -f3`"
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`"
ExecStart=/usr/bin/tail -f /dev/null
ExecStartPost=/bin/sh -c "test -d /var/lib/deis/store/logs || mkdir -p /var/lib/deis/store/logs"
ExecStopPost=-/usr/bin/umount /var/lib/deis/store
Expand Down

0 comments on commit fe46f38

Please sign in to comment.