This commit is contained in:
Data Backend account
2020-12-02 11:43:22 +01:00
21 changed files with 285 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF04-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(33)
initialUDPport=50040
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF04T01V01
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=JF04 UDP2buffer worker instance as a service, instance %i
Requires=JF04-buffer.service
Before=JF04-buffer.service
BindsTo=JF04-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF04-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF04-buffer.service
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=All UDP-buffer instances of JF04
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF04-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF04
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF04-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
coreAssociated="36"
taskset -c ${coreAssociated} /usr/local/bin/sf_stream /gpfs/photonics/swissfel/buffer/config/stream-JF04.json
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=streamvis: JF04
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF04-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
+19
View File
@@ -0,0 +1,19 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5004
PORT_BACKEND=9004
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
taskset -c 16 \
streamvis bernina --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-bernina:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title Fluorescence
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF09-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(34)
initialUDPport=50150
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF09T01V01
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=JF09 UDP2buffer worker instance as a service, instance %i
Requires=JF09-buffer.service
Before=JF09-buffer.service
BindsTo=JF09-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF09-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF09-buffer.service
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=All UDP-buffer instances of JF09
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF09-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF09
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF09-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
coreAssociated="37"
taskset -c ${coreAssociated} /usr/local/bin/sf_stream /gpfs/photonics/swissfel/buffer/config/stream-JF09.json
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=streamvis: JF09
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF09-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
+19
View File
@@ -0,0 +1,19 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5009
PORT_BACKEND=9009
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
taskset -c 17 \
streamvis alvra --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-alvra:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title FLEX:Normal
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF10-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(35)
initialUDPport=50160
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF10T01V01
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=JF10 UDP2buffer worker instance as a service, instance %i
Requires=JF10-buffer.service
Before=JF10-buffer.service
BindsTo=JF10-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF10-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF10-buffer.service
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=All UDP-buffer instances of JF10
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF10-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF10
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF10-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
coreAssociated="38"
taskset -c ${coreAssociated} /usr/local/bin/sf_stream /gpfs/photonics/swissfel/buffer/config/stream-JF10.json
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=streamvis: JF10
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF10-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
+19
View File
@@ -0,0 +1,19 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5010
PORT_BACKEND=9010
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
taskset -c 18 \
streamvis alvra --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-alvra:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title FLEX:Stripsel