Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: RE: IOC shutdown signal(s)
From: "Al Honey" <ahoney@keck.hawaii.edu>
To: "Gurd, Pamela A." <pamgurd@ornl.gov>, "Andrew Johnson" <anj@aps.anl.gov>, "Rod Nussbaumer" <bomr@triumf.ca>
Cc: <tech-talk@aps.anl.gov>
Date: Mon, 3 Apr 2006 09:16:10 -1000
At the KECK observatory we use serial-to-digital devices (Metrabyte,
DGH, hmm forgotten the others but there are version that are RS-232 or
RS-485) which are connected to terminal servers. The digital outputs
from those devices either pull the VME reset line low and/or connect to
digital input signals on VME boards from which interrupts can be
generated.

AH

-----Original Message-----
From: Gurd, Pamela A. [mailto:pamgurd@ornl.gov] 
Sent: Monday, April 03, 2006 9:06 AM
To: Andrew Johnson; Rod Nussbaumer
Cc: tech-talk@aps.anl.gov
Subject: RE: IOC shutdown signal(s)

I'm hoping that Dave Thompson will respond with information about the
"procServ" we use here.

However, in addition to that, which lets you do a ^X on the console, or
exit(), (and I've used that to create a reboot record as suggested by
Andrew) - I've created scripts called lxRestart and lxRestartDev that
kill the processes and restart them under a user we've created for the
purpose of running soft IOCs.  My idea was that I did not want a process
needed by operations that couldn't be stopped or restarted by anybody
but me.

     Pam.

> -----Original Message-----
> From: Andrew Johnson [mailto:anj@aps.anl.gov]
> Sent: Monday, April 03, 2006 2:57 PM
> To: Rod Nussbaumer
> Cc: tech-talk@aps.anl.gov
> Subject: Re: IOC shutdown signal(s)
> 
> Rod Nussbaumer wrote:
> >
> > I am trying to set up a Linux host running a soft IOC, where there
is a
> > coordinated system of start-stop-restart commands available for
> > maanaging the IOC as a system service. I would like to be able to
issue
> > a signal to the IOC to shut it down in a way that is at least as
> > graceful as typing 'exit' at the IOC shell. Which, if any, signal
does
> > this? Is there any reason a new IOC could not be immediately
started?
> > The EPICS database may change between runs. In fact, this is the
main
> > reason for performing the restart.
> 
> There is no signal (as in "kill -HUP" type of signal) to restart an
IOC.
>   You can create a subroutine record that calls exit() though and then
> use caput to do this (the softIoc binary that gets built by base
> includes such an exit subroutine already).  Alternatively you could
wrap
> your IOC binary with a script to do the restart, and just kill the ioc
> process directly.  We do something like this here at APS to ensure
that
> soft IOCs automatically restart themselves in the event of a crash,
> although we do have a restart limit counter to ensure they don't loop
> forever.
> 
> - Andrew
> --
> There is no S in exprexxo.


Navigate by Date:
Prev: RE: IOC shutdown signal(s) Gurd, Pamela A.
Next: seq 2.0.11 now available Laznovsky, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: IOC shutdown signal(s) Gurd, Pamela A.
Next: RE: IOC shutdown signal(s) Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·