Skip to content
Snippets Groups Projects
Commit 0aacb102 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Cleanup

parent 12d03c5b
No related branches found
No related tags found
No related merge requests found
......@@ -4,30 +4,48 @@ STANDARD_TAGS := "IO_EVT, IO_SUM, IO_TSL, IO_TSL0, IO_TSL1, IO_TSL2, IO_TSSN, MS
default: start
start:
@echo Creating tmux session
@echo Creating tmux session...
@tmux new-session -d -s ${SESSION_NAME} \
|| (echo Please run \"make stop\" to close the current session.; exit 1)
@tmux rename-window -t ${SESSION_NAME}:1 main
@tmux split-window -v -t ${SESSION_NAME}:main
@tmux split-window -v -t ${SESSION_NAME}:main
@echo Launching our own ligier
@#
@tmux send-keys -t ${SESSION_NAME}:main.1 \
"JLigier -d2 -P ${MONITORING_LIGIER_PORT}" Enter
@sleep 1 # wait a second for JLigier
# The ligier mirror
@tmux split-window -v -t ${SESSION_NAME}:main
@echo Setting up the ligier mirror
@#
@tmux send-keys -t ${SESSION_NAME}:main.2 \
"ligiermirror -m \"${STANDARD_TAGS}\"" \
" -q ${MONITORING_LIGIER_PORT}" \
" -p ${DAQ_LIGIER_PORT} ${DAQ_LIGIER_IP}" \
Enter
# The web server
@tmux split-window -v -t ${SESSION_NAME}:main
@echo Starting the web server on 0.0.0.0:${WEBSERVER_PORT}
@#
@tmux send-keys -t ${SESSION_NAME}:main.3 \
"cd www && python3 -m http.server ${WEBSERVER_PORT}" Enter
@tmux select-layout even-vertical
@echo Starting the monitoring scripts
@sleep 3
@# DOM activity and DOM rates
@#
@tmux new-window -n doms -t ${SESSION_NAME}
@tmux split-window -v -t ${SESSION_NAME}:doms
@tmux send-keys -t ${SESSION_NAME}:doms.1 \
"python scripts/dom_activity.py" Enter
@tmux send-keys -t ${SESSION_NAME}:doms.2 \
"python scripts/dom_rates.py" Enter
@tmux select-layout even-vertical
stop:
tmux kill-session -t ${SESSION_NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment