From 031977305886d1f1f2159c1cb3be660b1cd3af22 Mon Sep 17 00:00:00 2001 From: Dmitry Ozerov Date: Wed, 6 May 2020 23:03:01 +0200 Subject: [PATCH] sf_stream now is a separate systemd service --- scripts/JF07-stream.service | 14 ++++++++++++++ scripts/JF07-stream.sh | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 scripts/JF07-stream.service create mode 100644 scripts/JF07-stream.sh diff --git a/scripts/JF07-stream.service b/scripts/JF07-stream.service new file mode 100644 index 0000000..d41554b --- /dev/null +++ b/scripts/JF07-stream.service @@ -0,0 +1,14 @@ +[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 +RestartSec=10 + +[Install] +WantedBy=multi-user.target + diff --git a/scripts/JF07-stream.sh b/scripts/JF07-stream.sh new file mode 100644 index 0000000..6cbabc1 --- /dev/null +++ b/scripts/JF07-stream.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +coreAssociated="20,21,22,23" + +taskset -c ${coreAssociated} /usr/bin/sf_stream tcp://129.129.241.42:9007 25 tcp://192.168.30.29:9107 10