summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/startup.sh
blob: c583876e2d33808da03d3eb5b6852e6300c52954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

cd /root/chef-solo
chef-solo -c solo.rb -o recipe[cassandra-actions::01-configureCassandra] -E ${ENVNAME}
rc=$?
if [[ $rc != 0 ]]; then exit $rc; fi

echo "########### starting cassandra ###########"
# start cassandra
/docker-entrypoint.sh cassandra -f &

chef-solo -c solo.rb  -E ${ENVNAME}
rc=$?
if [[ $rc != 0 ]]; then exit $rc; fi
while true; do sleep 30; done