Skip to content
Snippets Groups Projects
Commit 4e7d1049 authored by Dinyar Rabady's avatar Dinyar Rabady Committed by Giovanna Lazzari Miotto
Browse files

Add JSON5 dummy config file to /etc/scdaq

This is so that we can guarantee that we have a file with the correct access rights in that location. This file can subsequently be overwritten by the function manger.
parent 0c2fccb3
No related branches found
No related tags found
1 merge request!103feature: Introduce VCU128 processors and so much more
{
// Input settings //////////////////////////////////////////////////
// Input type, one of:
// "wzdma" for DMA driver from Wojciech M. Zabolotny
// "filedma" for reading from file and simulating DMA
// "micronDMA" for PICO driver
// "tcpip" for TCP/IP input receving
input: "tcpip",
// DMA device
dma_dev: "",
// Max received packet size in bytes (buffer to reserve)
dma_packet_buffer_size: 1261568,
// Number of packet buffers to allocate
dma_number_of_packet_buffers: 1000,
// Print report each N packets, use 0 to disable
packets_per_report: 200000,
// Extra settings for "filedma" input
input_files: [
// Must have at least the same cardinality as input_streams; kept isolated since `FileDMA` is a development feature
],
// Processor settings //////////////////////////////////////////////
enable_stream_processor: "yes",
// Enable software zero-suppression. Does not affect Calo.
doZS: "yes",
// Output settings /////////////////////////////////////////////////
output_filename_prefix: "",
output_filename_suffix: ".raw",
max_file_size: 8589934592,
// Always write data to a file regardless of the run status
output_force_write: "no",
// Generic settings ////////////////////////////////////////////////
port: 8000,
dev_TCPAutoReconnectOnFailure: "true",
// (Minimum) Logging severity: TRACE DEBUG INFO WARNING ERROR FATAL.
// Use TRACE to log everything.
log_min_severity: "DEBUG",
threads: 4,
cmsswHeaders: "yes",
dthHeaders: "yes"
}
......@@ -170,7 +170,7 @@ if [ "$BUILDSYS" = "cmake" ]; then
else
cp $TOPDIR/RPMBUILD/BUILD/src/scdaq opt/scdaq/bin/
fi
cp -R $BASEDIR/etc/scdaq/scdaq.conf etc/scdaq/
cp -R $BASEDIR/etc/scdaq/scdaq.json5 etc/scdaq/
#touch opt/scdaq/scratch/new-version
......@@ -188,7 +188,7 @@ systemctl daemon-reload
%dir %attr(777, -, -) /var/log/scdaq/pid
%defattr(-, scouter, root, -)
/opt/scdaq/
%config /etc/scdaq/scdaq.conf
%config /etc/scdaq/scdaq.json5
%attr( 644 ,root, root) /usr/lib/systemd/system/runSCdaq.service
%preun
......
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