Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
12d03c5b
Commit
12d03c5b
authored
7 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Add webserver
parent
82621986
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.in
+22
-7
22 additions, 7 deletions
Makefile.in
configure
+13
-11
13 additions, 11 deletions
configure
with
35 additions
and
18 deletions
Makefile.in
+
22
−
7
View file @
12d03c5b
...
...
@@ -5,19 +5,34 @@ default: start
start
:
@
echo
Creating tmux session
@
tmux new-session
-d
-s
${
SESSION_NAME
}
\
@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 ligier
@tmux send-keys -t ${SESSION_NAME}
:
ligier.1
\
@tmux rename-window -t ${SESSION_NAME}
:
1 main
@tmux send-keys -t ${SESSION_NAME}
:
main.1
\
"JLigier -d2 -P ${MONITORING_LIGIER_PORT}" Enter
@sleep
1
# wait a second for JLigier
@tmux split-window -v -t ${SESSION_NAME}
:
ligier
@
tmux send-keys
-t
${
SESSION_NAME
}
:ligier.2
\
"ligiermirror -m
\"
${
STANDARD_TAGS
}
\"
-q
${
MONITORING_LIGIER_PORT
}
-p
${
DAQ_LIGIER_PORT
}
${
DAQ_LIGIER_IP
}
"
Enter
# The ligier mirror
@tmux split-window -v -t ${SESSION_NAME}
:
main
@
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
@
tmux send-keys
-t
${
SESSION_NAME
}
:main.3
\
"cd www && python3 -m http.server
${
WEBSERVER_PORT
}
"
Enter
stop
:
tmux kill-session
-t
${
SESSION_NAME
}
.PHONY
:
start stop
clean
:
rm
Makefile
.PHONY
:
start stop clean
This diff is collapsed.
Click to expand it.
configure
+
13
−
11
View file @
12d03c5b
...
...
@@ -4,6 +4,7 @@ daq_ligier_ip="192.168.0.110"
daq_ligier_port
=
5553
monitoring_ligier_ip
=
"127.0.0.1"
monitoring_ligier_port
=
5553
webserver_port
=
8080
tmux_session_name
=
"km3mon"
...
...
@@ -27,10 +28,6 @@ for arg in "$@"; do
daq_ligier_port
=
`
echo
$arg
|
sed
's/--daq-ligier-port=//'
`
;;
--monitoring-ligier-ip
=
*
)
monitoring_ligier_ip
=
`
echo
$arg
|
sed
's/--monitoring-ligier-ip=//'
`
;;
--monitoring-ligier-port
=
*
)
monitoring_ligier_port
=
`
echo
$arg
|
sed
's/--monitoring-ligier-port=//'
`
;;
...
...
@@ -39,16 +36,20 @@ for arg in "$@"; do
tmux_session_name
=
`
echo
$arg
|
sed
's/--tmux-session-name=//'
`
;;
--webserver-port
=
*
)
webserver_port
=
`
echo
$arg
|
sed
's/--webserver-port=//'
`
;;
--help
)
show_km3mon_banner
echo
'Usage: ./configure [options]'
echo
echo
' OPTION
DESCRIPTION DEFAULT'
echo
" --daq-ligier-ip
=<ip>
The
DAQ Ligier
${
daq_ligier_ip
}
"
echo
" --daq-ligier-port
=<port>
The p
ort of the DAQ Ligier
${
daq_ligier_port
}
"
echo
" --monitoring-ligier-
ip=<ip> T
he monitoring Ligier
${
monitoring_ligier_
i
p
}
"
echo
" --
monitoring-ligier-port=<port> The port of the DAQ Ligier
${
monitoring_ligier_port
}
"
echo
" --
tmux-session-name=<name> TMUX session name
${
tmux_session_name
}
"
echo
' OPTION DESCRIPTION
DEFAULT'
echo
" --daq-ligier-ip DAQ Ligier
${
daq_ligier_ip
}
"
echo
" --daq-ligier-port
P
ort of the DAQ Ligier
${
daq_ligier_port
}
"
echo
" --monitoring-ligier-
port Port of t
he monitoring Ligier
${
monitoring_ligier_p
ort
}
"
echo
" --
tmux-session-name TMUX session name
${
tmux_session_name
}
"
echo
" --
webserver-port Port of the web server
${
webserver_port
}
"
echo
echo
'All invalid options are silently ignored.'
exit
0
...
...
@@ -58,8 +59,8 @@ done
echo
"DAQ_LIGIER_IP =
${
daq_ligier_ip
}
"
>
Makefile
echo
"DAQ_LIGIER_PORT =
${
daq_ligier_port
}
"
>>
Makefile
echo
"MONITORING_LIGIER_IP =
${
monitoring_ligier_ip
}
"
>>
Makefile
echo
"MONITORING_LIGIER_PORT =
${
monitoring_ligier_port
}
"
>>
Makefile
echo
"WEBSERVER_PORT =
${
webserver_port
}
"
>>
Makefile
echo
"SESSION_NAME =
${
tmux_session_name
}
"
>>
Makefile
cat
Makefile.in
>>
Makefile
...
...
@@ -67,5 +68,6 @@ cat Makefile.in >> Makefile
show_km3mon_banner
echo
"DAQ Ligier:
${
daq_ligier_ip
}
:
${
daq_ligier_port
}
"
echo
"Monitoring Ligier:
${
monitoring_ligier_ip
}
:
${
monitoring_ligier_port
}
"
echo
"Webserver: 0.0.0.0:
${
webserver_port
}
"
echo
echo
"Configuration complete, type
\"
make start
\"
to start the monitoring in a tmux session called
\"
${
tmux_session_name
}
\"
."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment