Update README for archival
[reddit.git] / install / install_zookeeper.sh
blob03af8241050a6cfcbf6ce178ffdfabb43faa810a
1 #!/bin/bash
2 # The contents of this file are subject to the Common Public Attribution
3 # License Version 1.0. (the "License"); you may not use this file except in
4 # compliance with the License. You may obtain a copy of the License at
5 # http://code.reddit.com/LICENSE. The License is based on the Mozilla Public
6 # License Version 1.1, but Sections 14 and 15 have been added to cover use of
7 # software over a computer network and provide for limited attribution for the
8 # Original Developer. In addition, Exhibit A has been modified to be consistent
9 # with Exhibit B.
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
13 # the specific language governing rights and limitations under the License.
15 # The Original Code is reddit.
17 # The Original Developer is the Initial Developer. The Initial Developer of
18 # the Original Code is reddit Inc.
20 # All portions of the code written by reddit are Copyright (c) 2006-2016 reddit
21 # Inc. All Rights Reserved.
22 ###############################################################################
24 RUNDIR=$(dirname $0)
25 source $RUNDIR/install.cfg
27 sudo apt-get install $APTITUDE_OPTIONS zookeeperd
29 echo "Waiting for ZooKeeper to be available..."
30 while ! nc -vz localhost 2181; do
31 sleep 1
32 done