Epics@GSI Webhome

rc script: (re)start hadcon at reboot

( ...Copy of http://wiki.gsi.de/Epics.HowToSetupHadesIOCsRestartAtRebootHadconRcScript?rev=r1.2 which cannot be included by Twiki ... )

%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, 13-01-2010

startEpicsIocScript=/home/hadaq/EPICS/startupProcedures/startEpicsIoc.sh [ -x "$startEpicsIocScript" ] && $startEpicsIocScript || echo "$startEpicsIocScript" failed unset startEpicsIocScript

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

%end%


-- PeterZumbruch - 14 Jan 2010

This topic: Epics > WebHome > EpicsProjectsAndActivities > HadesControlSystem > HowToSetupHadesIOCsRestartAtReboot > HowToSetupHadesIOCsRestartAtRebootHadconRcScript > HowToSetupHadesIOCsRestartAtRebootHadconRcScriptCopyOfRev1dot2
Topic revision: 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)