Skip to content
Snippets Groups Projects
Commit dd8b514d authored by BRONES Romain's avatar BRONES Romain
Browse files

fofb-opcua relaunch fofb-init upon restart

parent 07b77bbb
Branches master
No related tags found
No related merge requests found
......@@ -26,10 +26,9 @@ start() {
# Wait for server started
(tail -F -n0 $LOG_FILE & ) | grep -q "All application modules are running"
# Reset the FPGA
echo "Reset FPGA and reconfigure" >> $LOG_FILE
/etc/init.d/fw_plreset.sh >> $LOG_FILE
fofb-configurator --config /opt/fofb/cfg/config_register --dmap /opt/fofb/opcua-server/devices.dmap >> $LOG_FILE
# Restart FPGA application because server writes all zeros
echo "Restart FPGA application" >> $LOG_FILE
/etc/init.d/fofb-init.sh start
### Create the lock file ###
echo "started" > $LOCK_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment