EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: SoftIocMain.cpp
From: Ralph Lange <[email protected]>
To: EPICS Core Talk <[email protected]>
Date: Wed, 11 Jul 2007 16:43:15 +0200
Hello -

part of a proper "professional" soft IOC setup is having a PID file that the system scripts can use to selectively start/stop soft IOCs as required. Through multiple forks, shells and a screen session, it is hard to determine the PID of the soft IOC from the startup script. My solution was exporting an environment variable PIDFILE into that chain of fork/shell/screen and have the soft IOC itself create the PID file, if that environment variable is set.

http://www.aps.anl.gov/epics/wiki/index.php/How_to_Set_Up_a_Soft_IOC_Framework_on_Linux#Make_the_Soft_IOC_Create_the_PID_File

shows the code I added to my soft IOCs.

Does anyone see any possible side-effects? Would that code be Windows-proof? Should I integrate it into the example stuff in base to make it standard?

Regards,
Ralph


Replies:
Re: SoftIocMain.cpp Andrew Johnson

Navigate by Date:
Prev: Re: lock ownership enforcement in OO design Andrew Johnson
Next: Re: SoftIocMain.cpp Andrew Johnson
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: lock ownership enforcement in OO design Kay-Uwe Kasemir
Next: Re: SoftIocMain.cpp Andrew Johnson
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·