start_kuiper.sh 328 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. ver=`git describe --tags --always`
  4. os=`uname -s | tr "[A-Z]" "[a-z]"`
  5. base_dir=_build/kuiper-"$ver"-"$os"-amd64
  6. rm -rf $base_dir/data/*
  7. ls -l $base_dir/bin/kuiperd
  8. cd $base_dir/
  9. touch log/kuiper.out
  10. export BUILD_ID=dontKillMe
  11. nohup bin/kuiperd > log/kuiper.out 2>&1 &
  12. echo "starting kuiper at " $base_dir