]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
added stats.db into startup of IOCs to allow view from Detector Controls
authorPeter Zumbruch <p.zumbruch@gsi.de>
Fri, 8 Nov 2013 16:08:13 +0000 (17:08 +0100)
committerPeter Zumbruch <p.zumbruch@gsi.de>
Fri, 8 Nov 2013 16:08:13 +0000 (17:08 +0100)
'cpu' gui

evtbuild/start_eb_gbe.pl

index 2d22772ac5528fac8f0efc983e023f3dff9ed3f3..0be037197e4e9e88523099e3a2160b7827a4fd4d 100755 (executable)
@@ -667,7 +667,7 @@ sub startIOC()
         my $stcmd = sprintf("st_eb%02d.cmd", 1 + $ebproc);
         my $screen_name = sprintf("ioc_eb%02d", 1 + $ebproc);
 
-        my $cmd = "bash; . /home/scs/.bashrc; cd $ioc_dir; screen -dmS $screen_name ../../bin/linux-x86_64/ebctrl $stcmd";
+        my $cmd = "bash; . /home/scs/.bashrc; export HOSTNAME=\\\$(hostname); cd $ioc_dir; screen -dmS $screen_name ../../bin/linux-x86_64/ebctrl $stcmd";
         my $cpu = $EB_Args_href->{$ebproc}->{'IP'};
 
         my $exe = "ssh -n $cpu -l scs \"$cmd\"";
@@ -721,8 +721,6 @@ sub writeIOC_stcmd()
         my $ioc_stcmd = <<EOF;
 #!../../bin/linux-x86_64/ebctrl
 
-## You may have to change ebctrl to something else
-## everywhere it appears in this file
 ## Set EPICS environment
 
 < envPaths
@@ -743,7 +741,7 @@ dbLoadDatabase("dbd/ebctrl.dbd")
 ebctrl_registerRecordDeviceDriver(pdbbase)
 
 ## Load record instances
-dbLoadTemplate "db/userHost.substitutions"
+dbLoadRecords("db/stats.db", "PREFIX=HAD:IOC:,IOC=${HOSTNAME}")
 dbLoadRecords("db/evtbuild.db","eb=$ebnum")
 dbLoadRecords("db/netmem.db","eb=$ebnum")
 dbLoadRecords("db/errbit1.db","eb=$ebnum")