Subject: |
Re: Running softIoc's in the background |
From: |
Steven Hartman <[email protected]> |
To: |
EPICS tech-talk <[email protected]> |
Date: |
Tue, 8 Nov 2005 13:24:18 -0500 (EST) |
On Tue, 8 Nov 2005, Paul Sichta wrote:
> I use an indirect method to call st.cmd. I can't recall why I ended up
> doing it that way.
I have something similar (and I also don't recall offhand why I set it up
like this):
/etc/init.d/epicsioc (with appropriate links to start/stop automatically
on boot):
----
#!/bin/sh
EPICSUSER=linuxioc
case "$1" in
start)
echo "Starting EPICS IOC "
su - $EPICSUSER -c 'screen -d -m /usr/local/bin/startdiagioc' &
;;
stop)
for i in `/bin/ps h o pid -u $EPICSUSER`; do
kill -s SIGKILL $i > /dev/null 2>&1
done
;;
*)
echo "Usage: $0 {start | stop}"
exit 1
esac
exit 0
----
% cat /usr/local/bin/startdiagioc
#!/bin/sh
TOP=/home/project/applications
APPLICATION=instrumentation
BASE=/usr/local/epics/base
HOST_ARCH=linux-x86
PATH=/bin:/usr/bin:${BASE}/bin/${HOST_ARCH}
# start caRepeater
startCArepeater > /dev/null 2>&1
# start ioc app
cd $TOP/iocBoot/ioc$APPLICATION
./st.cmd
----
--
Steve Hartman
[email protected] || 919-660-2650
Duke Free Electron Laser Laboratory
- References:
- Running softIoc's in the background Walters, M (Malcolm)
- Re: Running softIoc's in the background Eric Norum
- Re: Running softIoc's in the background Paul Sichta
- Navigate by Date:
- Prev:
Re: Running softIoc's in the background Paul Sichta
- Next:
RE: Alarm in Epics Liyu, Andrei
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Running softIoc's in the background Paul Sichta
- Next:
Re: Running softIoc's in the background john sinclair
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|