diff --git a/init.d/runSCdaq.service b/init.d/runSCdaq.service new file mode 100644 index 0000000000000000000000000000000000000000..5ac3adc942f406e2873c0f0309731bbeb904bf63 --- /dev/null +++ b/init.d/runSCdaq.service @@ -0,0 +1,15 @@ +[Unit] +Description=Wrapper script to run scdaq + +[Service] +Type=simple +PIDFile=/var/log/scdaq/pid +ExecStart=/opt/scdaq/scripts/run.sh +User=scouter +Group=scouter +WorkingDirectory=/opt/scdaq/scripts +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/init.d/scoutboardResetServer.service b/init.d/scoutboardResetServer.service new file mode 100644 index 0000000000000000000000000000000000000000..a4445232ad899720333cea3d6e0dab5ef3d36ed4 --- /dev/null +++ b/init.d/scoutboardResetServer.service @@ -0,0 +1,15 @@ +[Unit] +Description=Server that can reset the scouting board via the Xilinx VIO on request + +[Service] +Type=simple +PIDFile=/var/log/scdaq/scoutboard_reset_server.pid +ExecStart=/opt/scdaq/scripts/vivado/reset_server.sh +User=root +Group=wheel +WorkingDirectory=/opt/scdaq/scripts/vivado +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target