mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-05-12 00:25:35 +02:00
19 lines
430 B
Bash
19 lines
430 B
Bash
#!/bin/bash
|
|
|
|
if [ $# != 1 ]
|
|
then
|
|
systemctl start {{ detector }}-buffer-worker@{00..{{ last_module_number}}}
|
|
exit
|
|
fi
|
|
|
|
M=$1
|
|
|
|
coreAssociatedBuffer=({{ cores_receivers }})
|
|
|
|
initialUDPport={{ initial_udp_port }}
|
|
port=$((${initialUDPport}+10#${M}))
|
|
DETECTOR={{ detector_full_name }}
|
|
|
|
taskset -c ${coreAssociatedBuffer[10#${M}]} /home/dbe/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|
|
|