Skip to content

Commit

Permalink
Make run.sh use python entrypoints (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Mar 5, 2020
1 parent 78e8f35 commit d188d37
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions admin/systemd/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ echo "cwd:" ${PWD}
if [ $1 == "head" ]; then
# magic url which returns local ip when run on EC2 host
export HEAD_HOST=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)
echo "running headnode.py"
python -u headnode.py &
echo "running hsds-headnode"
export PYTHONUNBUFFERED="1"
hsds-headnode &
elif [ $1 == "dn" ]; then
echo "running datanode.py"
python -u datanode.py &
echo "running hsds-datanode"
export PYTHONUNBUFFERED="1"
hsds-datanode &
elif [ $1 == "sn" ]; then
echo "running servicenode.py"
python -u servicenode.py &
echo "running hsds-servicenode"
export PYTHONUNBUFFERED="1"
hsds-servicenode &
else
echo "Argument not recognized"
exit 1
Expand Down

0 comments on commit d188d37

Please sign in to comment.