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: "Gurd, Pamela A." <pamgurd@ornl.gov>
To: Andrew Johnson <anj@aps.anl.gov>, Rod Nussbaumer <bomr@triumf.ca>
Cc: tech-talk@aps.anl.gov
Date: Mon, 03 Apr 2006 15:05:47 -0400
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) Andrew Johnson
Next: RE: IOC shutdown signal(s) Al Honey
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) Andrew Johnson
Next: RE: IOC shutdown signal(s) Al Honey
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 ·