tmux_sessions.sh 894 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. set -e
  3. # Start a tmux session with a lilith node, two consensus nodes, a non-consensus
  4. # node, and a faucet that's able to mint tokens.
  5. if [ "$1" = "-v" ]; then
  6. verbose="-v"
  7. else
  8. verbose=""
  9. fi
  10. tmux new-session -d
  11. tmux send-keys "LOG_TARGETS='!MessageSubsystem::notify' ../../../lilith ${verbose} -c lilith_config.toml" Enter
  12. sleep 10
  13. tmux split-window -v
  14. tmux send-keys "LOG_TARGETS='!sled' ../../../darkfid ${verbose} -c darkfid0.toml" Enter
  15. sleep 10
  16. tmux select-pane -t 0
  17. tmux split-window -h
  18. tmux send-keys "LOG_TARGETS='!sled' ../../../darkfid ${verbose} -c darkfid1.toml" Enter
  19. sleep 10
  20. tmux select-pane -t 1
  21. tmux split-window -h
  22. tmux send-keys "LOG_TARGETS='!sled' ../../../darkfid ${verbose} -c darkfid2.toml" Enter
  23. sleep 10
  24. tmux select-pane -t 3
  25. tmux split-window -h
  26. tmux send-keys "LOG_TARGETS='!sled,!net' ../../../faucetd ${verbose} -c faucetd.toml" Enter
  27. tmux attach