CVSROOT
: :ext:[<valid user>@]lxi001.gsi.de:/misc/hadesprojects/daq/cvsroot
module
: EPICS/startupProcedures
bash
, but rather dash
since its the the least common denominator) on the systems
softIOC and special IOCs | x86-based |
hadcon and TRB | axis cris architecture |
procServ
, a Process Server with Telnet Console and Log Access
procServ
calling script startBackgroundEpicsIoc.sh
exitIfHelpers.sh
used by the other scripts
lxg0434
(GSI network) and hadesdaq02
(HADES network)
cron
and
scs
the IOCs
~scs/procServ
are called by cron at reboot
machine | script | crontab -e / crontab -l | comments |
---|---|---|---|
hadesdaq02 | ioc-cave.sh |
@reboot cd ~scs/procServ/ && ./ioc-cave.sh |
requires settings for shared libraries |
lxg0434 | ioc-hv.sh |
@reboot cd ~scs/procServ/ && ./ioc-hv.sh |
requires settings for shared libraries needs to be started at lxg0434 since since log files are on /scratch.local/ due to size |
template | ioc-template.sh |
@reboot cd ~scs/procServ/ && ./ioc-template.sh |
template for further commands |
...
(Click to expand)
![]() |
...
(Click to expand)
![]() |
...
(Click to expand)
![]() |
hadcon
boards executes at startup/reboot the content of the /home/hadaq/etc/rc
script file. procServ
also here.
rc
script resides on the mounted file system from lxhadesdaq
and shows up on the local mount point /home/hadaq/etc/rc
/var/diskless/etrax
of lxhadesdaq
, hadaq
. /var/diskless/etrax
since this is not in the backup :-/
<EPICS IOC (re)start script>
is called/sourced from rc
rc
script hostname
the <EPICS IOC (re)start script>
calls <EPICS IOC start Background script>
which calls the corresponding EPICS IOC executable with its additional varying <Startup cmd Script>
by using the functionalities of procServ
<EPICS IOC (re)start script>
should be called using a lookup table text file
IocListFile.txt
<EPICS IOC (re)start script>
analyzes the lookup table or input options and selects depending on hostname<EPICS IOC start Background script>
calls procServ
with the embedding of the EPICS IOCrc
rc
,
hostname
export HOSTNAME=$(hostname)
procServ
installed /home/hadaq/procServ
/home/hadaq/EPICS/startupProcedures/procServ
/home/hadaq/EPICS/startupProcedures/procServ/lib
hadcon
s: <EPICS-IOCS>.txt
/home/hadaq/EPICS/startupProcedures
/home/hadaq/EPICS/startupProcedures
/home/hadaq/EPICS/startupProcedures
script resetMACs.sh
calling callee resetMAC.sh
/home/hadaq/EPICS/startupProcedures
the procServ
calling script startBackgroundEpicsIoc.sh
/home/hadaq/EPICS/startupProcedures
script startEpicsIoc.sh
calling callee startBackgroundEpicsIoc.sh
/home/hadaq/EPICS/startupProcedures
helper script exitIfHelpers.sh
used by the other scripts
/home/hadaq/EPICS/startupProcedures
lookup table file IocListFile.txt
/home/hadaq/etc
to call the specific iocListFile
EPICS_startupProcedures_hadcon.tar.bz2
of all necessary startup directory structure and files in /home/hadaq/EPICS
startBackgroundEpicsIOC.sh
and ioc-template.sh