setup_env.sh 558 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. emqx_ids=`ps aux|grep "emqx" | grep "/usr/bin"|awk '{printf $2 " "}'`
  3. if [ "$emqx_ids" = "" ] ; then
  4. echo "No emqx broker was started"
  5. echo "starting emqx..."
  6. emqx start
  7. else
  8. echo "emqx has already started"
  9. #for pid in $emqx_ids ; do
  10. #echo "kill emqx: " $pid
  11. #kill -9 $pid
  12. #done
  13. fi
  14. pids=`ps aux|grep "server" | grep "bin"|awk '{printf $2 " "}'`
  15. if [ "$pids" = "" ] ; then
  16. echo "No kuiper server was started"
  17. else
  18. for pid in $pids ; do
  19. echo "kill kuiper " $pid
  20. kill -9 $pid
  21. done
  22. fi
  23. fvt_scripts/start_kuiper.sh