Skip to content

Commit

Permalink
Merge pull request #67 from airbnb/kailiu.filelock
Browse files Browse the repository at this point in the history
Quicly add file lock
  • Loading branch information
liukai committed Feb 2, 2015
2 parents e07dad7 + 0c9235a commit b0faacf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/stemcell/templates/bootstrap.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
# Martin Rhoads


(
echo 'Acquiring converge lock...'
/usr/bin/flock -e 200
echo 'Lock acquired!'

set -o pipefail
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Expand Down Expand Up @@ -253,3 +258,4 @@ configure_chef_daemon


echo "<%= last_bootstrap_line %>"
) 200> /var/run/converge.lock

0 comments on commit b0faacf

Please sign in to comment.