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: Andrew Johnson <anj@aps.anl.gov>
To: Rod Nussbaumer <bomr@triumf.ca>
Cc: tech-talk@aps.anl.gov
Date: Mon, 03 Apr 2006 13:56:51 -0500
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.

References:
IOC shutdown signal(s) Rod Nussbaumer

Navigate by Date:
Prev: IOC shutdown signal(s) Rod Nussbaumer
Next: RE: IOC shutdown signal(s) Gurd, Pamela A.
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: IOC shutdown signal(s) Rod Nussbaumer
Next: RE: IOC shutdown signal(s) Gurd, Pamela A.
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 ·