Epics@GSI Webhome

rc script: (re)start hadcon at reboot

%begin bash% #!/bin/sh # rc # script called at system startup/reboot

# # [...] commented out code #

# --------------------------- # set the time server if [ ! -e "/etc/localtime" ] then ln -s /home/hadaq/Berlin /etc/localtime fi /home/hadaq/ntpdate 140.181.90.22

# --------------------------- # reset MAC address to have the same last to digits of the hostname # - checks in script $resetMACsScript # for matching hostnames and reconfigures eth0 # P.Zumbruch, GSI, 13-01-2010

resetMACsScript=/home/hadaq/EPICS/startupProcedures/resetMACs.sh [ -x "$resetMACsScript" ] && $resetMACsScript -e eth0 || echo "$resetMACsScript" failed unset resetMACsScript

# --------------------------- # start EPICS IOC script # - checks in script $startEpicsIocScript # for matching hostnames and starts IOC in background # P.Zumbruch, GSI, 11-02-2010

startEpicsIocScript=/home/hadaq/EPICS/startupProcedures/startEpicsIoc.sh startEpicsIocListFile=/home/hadaq/EPICS/startupProcedures/iocListFile-Etrax.txt startEpicsIocCommand="$startEpicsIocScript -f $startEpicsIocListFile" [ -x "$startEpicsIocScript" ] && [ -f "$startEpicsIocListFile" ] && $startEpicsIocCommand || echo "$startEpicsIocScript" failed unset startEpicsIocScript startEpicsIocListFile

# --------------------------- export PATH=$PATH:/home/hadaq:/home/hadaq/bin

%end%


-- PeterZumbruch - 11 Feb 2010
  • rc: rc script
Topic revision: r3 - 2010-02-11, PeterZumbruch
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)