Epics@GSI Webhome

hv script: (re)start soft IOC lxg0434 at reboot

Code

%begin bash% #!/bin/bash

# ioc-hv.sh # starts EPICS IOC in background using procServ tool # by defining user specific variables # and # then calling/sourcing ${startBackgroundEpicsIocScript} # which implements those settings # # Author: P.Zumbruch@gsi.de 12/01/2010 # Last modification: 23/02/2010

# uncomment to debug #set -xv

scriptname=ioc-hv.sh startBackgroundEpicsIocScriptName=startBackgroundEpicsIoc.sh useUserDefinedVariables=yes

#specific predefines userDefines() { userProcServTelnetPort=4813 #userProcServTelnetLogPort=4814 userIOC=ioc-hv-$(hostname); userWorkingDir=~scs/epics_apps/prototypes/cbmall/iocBoot/ioccbm userCommandExecutable="../../bin/linux-x86/cbmall"; userCommandArgument="st.cmd";

userProcServExecutable=$(which procServ) userProcServDefaultExecutable=/u/epics/programs/bin/procServ userLibraryPathAdd=/u/scs/epics_apps/prototypes/cbmall/cbmApp/src #several paths allowed, separated by colon ':'

[ 0 -ge "${userProcServTelnetLogPort}" ] && unset userProcServTelnetLogPort userCommand="${userCommandExecutable} ${userCommandArgument}"; userProcServLoggingDir=${userWorkingDir} userProcServExecutable=${userProcServExecutable:-${userProcServDefaultExecutable}} }

#look for startBackgroundEpicsIocScriptName startBackgroundEpicsIocScript=$(which $startBackgroundEpicsIocScriptName) startBackgroundEpicsIocScript=${startBackgroundEpicsIocScript:-./${startBackgroundEpicsIocScriptName}}

#start script if available, else report ERROR and exit if [ -f "${startBackgroundEpicsIocScript}" ] then . ${startBackgroundEpicsIocScript} else echo "$scriptname: ERROR could not find main script file \`$startBackgroundEpicsIocScriptName'" exit -1 fi

%end%

Source


-- PeterZumbruch - 03 Mar 2010
Topic revision: r4 - 2010-03-03, PeterZumbruch - This page was cached on 2024-11-13 - 01:45.

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)