removed not needed anymore scripts (they moved to ansible on operation_tools of sf_daq_broker)

This commit is contained in:
Dmitry Ozerov
2021-07-16 13:04:50 +02:00
committed by Data Backend account
parent 41043af516
commit b1df0fe9f6
72 changed files with 0 additions and 1063 deletions
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF01-buffer-worker@{00..02}
exit
fi
M=$1
coreAssociatedBuffer=(12 12 12)
initialUDPport=50010
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF01T03V01
N_MODULES=3
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF01 UDP2buffer worker instance as a service, instance %i
Requires=JF01-buffer.service
Before=JF01-buffer.service
BindsTo=JF01-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF01-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=10
[Install]
WantedBy=JF01-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF01
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF01-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF01
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF01-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="24"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF01.json
SERVICE=JF01-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[Unit]
Description=streamvis: JF01
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF01-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
-19
View File
@@ -1,19 +0,0 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5001
PORT_BACKEND=9001
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
taskset -c 17,18 \
streamvis bernina --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-bernina:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title 1p5M
-29
View File
@@ -1,29 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF02-buffer-worker@{00..08}
exit
fi
M=$1
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
case ${H} in
'sf-daq-4')
coreAssociatedBuffer=(11 12 13 14 15 16 17 18 19)
;;
'sf-daq-8')
coreAssociatedBuffer=(1 1 1 2 2 2 3 3 3)
;;
*)
CORES=(25 25 26 26 27 27 28 28 29)
esac
initialUDPport=50020
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF02T09V02
N_MODULES=9
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF02 UDP2buffer worker instance as a service, instance %i
Requires=JF02-buffer.service
Before=JF02-buffer.service
BindsTo=JF02-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF02-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF02-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF02
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF02-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF02
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF02-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
case ${H} in
'sf-daq-4')
coreAssociated="33,34,35"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF02.daq4.json
;;
'sf-daq-8')
coreAssociated="20,21"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF02.json
;;
*)
coreAssociated="12"
esac
SERVICE=JF02-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[Unit]
Description=streamvis: JF02
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF02-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
-31
View File
@@ -1,31 +0,0 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5002
PORT_BACKEND=9002
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
case ${H} in
'sf-daq-4')
CORES='36,37'
;;
'sf-daq-8')
CORES='33,34'
;;
*)
CORES='2'
esac
taskset -c ${CORES} \
streamvis alvra --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-alvra:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title 4p5M_Alvra
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF03-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(12)
initialUDPport=50030
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF03T01V01
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF03 UDP2buffer worker instance as a service, instance %i
Requires=JF03-buffer.service
Before=JF03-buffer.service
BindsTo=JF03-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF03-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF03-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF03
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF03-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF03
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF03-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="27"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF03.json
SERVICE=JF03-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[Unit]
Description=streamvis: JF03
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF03-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
-21
View File
@@ -1,21 +0,0 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5003
PORT_BACKEND=9003
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
CORES=39
taskset -c ${CORES} \
streamvis bernina --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-bernina:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title I0
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF04-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(12)
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
@@ -1,16 +0,0 @@
[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
@@ -1,10 +0,0 @@
[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
@@ -1,15 +0,0 @@
[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
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="27"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF04.json
SERVICE=JF04-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[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
-21
View File
@@ -1,21 +0,0 @@
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}
CORES=39
taskset -c ${CORES} \
streamvis bernina --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-bernina:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title Fluorescence
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF06-buffer-worker@{00..31}
exit
fi
M=$1
coreAssociatedBuffer=(4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11)
initialUDPport=50060
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF06T32V02
N_MODULES=32
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF06 UDP2buffer worker instance as a service, instance %i
Requires=JF06-buffer.service
Before=JF06-buffer.service
BindsTo=JF06-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF06-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF06
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF06
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="22,23,24"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF06.json
SERVICE=JF06-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[Unit]
Description=streamvis: JF06
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF06-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
-20
View File
@@ -1,20 +0,0 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5006
PORT_BACKEND=9006
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
CORES="35,36"
taskset -c ${CORES} \
streamvis default16m --allow-websocket-origin=${H}:${PORT} --allow-websocket-origin=sf-daq-alvra:${PORT} \
--port=${PORT} --address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title 16M_Jungfrau_Alvra
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF06_4M-buffer-worker@{00..07}
exit
fi
M=$1
coreAssociatedBuffer=(4 5 6 7 8 9 10 11)
initialUDPport=50060
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF06T08V02
N_MODULES=8
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF06(4M mode) UDP2buffer worker instance as a service, instance %i
Requires=JF06_4M-buffer.service
Before=JF06_4M-buffer.service
BindsTo=JF06_4M-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06_4M-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF06_4M-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF06(4M mode)
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06_4M-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF06 (4M mode)
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF06_4M-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
coreAssociated="20,21"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF06_4M.daq8.json
SERVICE=JF06_4M-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-28
View File
@@ -1,28 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF07-buffer-worker@{00..31}
exit
fi
M=$1
# Add ourselves to the user cpuset.
# echo $$ > /sys/fs/cgroup/cpuset/user/tasks
#8 udp2buffer workers per core
#coreAssociatedBuffer=(4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8)
#4 udp2buffer workers per core
coreAssociatedBuffer=(4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11)
#2 udp2buffer workers per core
#coreAssociatedBuffer=(4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19)
# 1 udp2buffer worker per core
#coreAssociatedBuffer=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32)
initialUDPport=50100
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF07T32V01
N_MODULES=32
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF07 UDP2buffer worker instance as a service, instance %i
Requires=JF07-buffer.service
Before=JF07-buffer.service
BindsTo=JF07-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF07-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=10
[Install]
WantedBy=JF07-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF07
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF07-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF07
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF07-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="20,21,22,23"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF07.json
SERVICE=JF07-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF09-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(12)
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
@@ -1,16 +0,0 @@
[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
@@ -1,10 +0,0 @@
[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
@@ -1,15 +0,0 @@
[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
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="25"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF09.json
SERVICE=JF09-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[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
-21
View File
@@ -1,21 +0,0 @@
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}
CORES=37
taskset -c ${CORES} \
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
@@ -1,17 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF10-buffer-worker@00
exit
fi
M=$1
coreAssociatedBuffer=(12)
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
@@ -1,16 +0,0 @@
[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
@@ -1,10 +0,0 @@
[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
@@ -1,15 +0,0 @@
[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
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="26"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF10.json
SERVICE=JF10-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[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
-21
View File
@@ -1,21 +0,0 @@
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}
CORES=38
taskset -c ${CORES} \
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
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF11-buffer-worker@{00..03}
exit
fi
M=$1
coreAssociatedBuffer=(11 12 13 1)
initialUDPport=50170
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF11T04V01
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF11 UDP2buffer worker instance as a service, instance %i
Requires=JF11-buffer.service
Before=JF11-buffer.service
BindsTo=JF11-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF11-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=1
[Install]
WantedBy=JF11-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF11
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF11-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF11(TXS Flex)
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/dbe/service_scripts/JF11-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="14,15,16"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF11.json
SERVICE=JF11-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-13
View File
@@ -1,13 +0,0 @@
[Unit]
Description=streamvis: JF11
[Service]
User=root
TimeoutStartSec=2
ExecStart=/bin/bash ./home/dbe/service_scripts/JF11-vis.sh
Restart=on-failure
RestartSec=4
[Install]
WantedBy=multi-user.target
-18
View File
@@ -1,18 +0,0 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5011
PORT_BACKEND=9011
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
taskset -c 17,18 \
streamvis alvra --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-alvra:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title TXS_Flex
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
if [ $# != 1 ]
then
systemctl start JF13-buffer-worker@00
exit
fi
M=$1
# Add ourselves to the user cpuset.
# echo $$ > /sys/fs/cgroup/cpuset/user/tasks
coreAssociatedBuffer=(13)
initialUDPport=50190
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF13T01V01
N_MODULES=1
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
-16
View File
@@ -1,16 +0,0 @@
[Unit]
Description=JF13 UDP2buffer worker instance as a service, instance %i
Requires=JF13-buffer.service
Before=JF13-buffer.service
BindsTo=JF13-buffer.service
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF13-buffer-worker.sh %i
TimeoutStartSec=10
RestartSec=10
[Install]
WantedBy=JF13-buffer.service
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=All UDP-buffer instances of JF13
[Service]
Type=oneshot
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF13-buffer-worker.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=stream service (to streamvis and live analysis) of JF13
[Service]
PermissionsStartOnly=true
Type=idle
User=root
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF13-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
coreAssociated="25"
CONFIG=/gpfs/photonics/swissfel/buffer/config/stream-JF13.json
SERVICE=JF13-stream
/home/dbe/git/sf_daq_buffer/scripts/check_config_changed.sh ${CONFIG} ${SERVICE} &
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${CONFIG}
-6
View File
@@ -1,6 +0,0 @@
import datetime
#2020-05-08 08:29:52.742737 : 11718049010
reference_date = datetime.datetime(2020, 5, 8, 8, 29, 52)
now = datetime.datetime.utcnow()
delta = (datetime.datetime.utcnow()-reference_date).total_seconds()*1000
print(int(delta/10)+11718049010)