EPICS Home

Experimental Physics and Industrial Control System


 
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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to run IOC in docker containers properly
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Thu, 18 Jun 2020 18:18:27 +0200
On Thu, 18 Jun 2020 at 17:37, Michael Davidsaver <mdavidsaver at gmail.com> wrote:

Why not bake procServ into the IOC executable?  It could still fork() off the a child process for the actual IOC, but without an execvp().
(or at worst, to re-exec the same executable)

Of course fork() from a multi-threaded process needs some care.
As well as attention to FD_CLOEXEC.

As you know, the traditional Linux approach is to break up applications with large complex functionality into small independent units that each serve a narrow scope of purpose and can be combined on the command line.
procServ is following that approach.

Looking at the list of command line options and features of procServ (that were all added on user request btw.) - do you want all this being part of the IOC?
Your idea sounds a lot like the CA Gateway's quirky server mode - that IMHO should be deprecated in favor of running it under procServ, to put an end to running two hardly distinguishable processes for each Gateway instance.

Cheers,
~Ralph


Replies:
Re: How to run IOC in docker containers properly Eric Norum via Tech-talk
Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk
Re: How to run IOC in docker containers properly Ben Franksen via Tech-talk
References:
How to run IOC in docker containers properly xiao zhang via Tech-talk
Re: How to run IOC in docker containers properly Johnson, Andrew N. via Tech-talk
Re: How to run IOC in docker containers properly Ben Franksen via Tech-talk
Re: How to run IOC in docker containers properly J. Lewis Muir via Tech-talk
Re: How to run IOC in docker containers properly Johnson, Andrew N. via Tech-talk
Re: How to run IOC in docker containers properly Konrad, Martin via Tech-talk
Re: How to run IOC in docker containers properly Johnson, Andrew N. via Tech-talk
Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk
Re: How to run IOC in docker containers properly Ralph Lange via Tech-talk
Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: EPICS across subnets Michael Davidsaver via Tech-talk
Next: Re: EPICS across subnets Randall Cayford via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk
Next: Re: How to run IOC in docker containers properly Eric Norum via Tech-talk
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  <20202021  2022  2023  2024