Default
English
Deutsch
You are here:
GSI Wiki
>
Epics Web
>
EpicsProjectsAndActivities
>
HadesControlSystem
>
HowToSetupHadesIOCsRestartAtReboot
>
HowToSetupHadesIOCsRestartAtRebootSoftIocTemplateScript
(2010-03-03,
PeterZumbruch
)
Edit
Attach
EPICS site GSI
|
Projects & Activities
|
EPICS site
template script: (re)start soft IOC at Reboot
Code
Source
Code
%begin bash% #!/bin/bash
# ioc-
.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-cave.sh startBackgroundEpicsIocScriptName=startBackgroundEpicsIoc.sh useUserDefinedVariables=yes
#specific predefines userDefines() { userProcServTelnetPort=
#eg. 4813 userProcServTelnetLogPort=-1 #-1:defaults to userProcServTelnetPort+1 userIOC=ioc-
-$(hostname) userWorkingDir=
#e.g ~scs/apps/hades/iocBoot/ioctemplate; userCommandExecutable=
#e.g. "../../bin/linux-x86/hades"; userCommandArgument=
#e.g. "st.cmd";
userProcServExecutable=$(which procServ) userProcServDefaultExecutable=
#e.g. /usr/local/bin/procServ userLibraryPathAdd=
#e.g. /home/scs/apps/hades/hadesApp/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
ioc-template.sh
: ioc-template.sh
--
PeterZumbruch
- 03 Mar 2010
Attachments
1
Attachments
1
I
Attachment
Action
Size
Date
Who
Comment
sh
ioc-template.sh
manage
1 K
2010-02-24 - 13:01
PeterZumbruch
ioc-template.sh
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew wiki text
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r4 - 2010-03-03,
PeterZumbruch
- This page was cached on 2024-11-13 - 01:42.
Epics
Log In
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
EditingShorthand
Macros
MacrosQuickReference
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Webs
Aikido
CRY_EXP
CSframework
ControlsCollaboration
DABC
EPS
ESR_EXP
Epics
FAIRcontrols
FIRST
FRS
Grid
IKBestX
ITInfo
ITRedakteure
Java
Linux
NIUser
OpenScience
PHDStudents
PLinacBD
ROOT
Research
SCM
SIS100BD
STF
Tasca
Copyright © 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)