EPICS Controls Argonne National Laboratory

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: Notifying systemd when IOC start is complete (plus showing progress)
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
To: "Konrad, Martin" <konrad at frib.msu.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 24 Jun 2020 18:01:08 +0200
Am 23.06.20 um 00:46 schrieb Konrad, Martin via Tech-talk:
>> And how do you signal readiness to systemd? Make the IOC core depend
>> on the sd-notify API?
> I first thought about that but that would obviously require modifying
> EPICS Base or writing a extension (which sounds like overkill for
> essentially one line of code). But looking at the systemd documentation
> I realized that there is actually a simpler way that I wasn't aware of
> so far: Adding the following line at the end of st.cmd does the trick:
> 
> system '/usr/bin/systemd-notify --ready'
> 
> systemd-notify simply wraps sd-notify. This of course requires
> 
> Type=notify
> NotifyAccess=all
> 
> in the foo.service file.

Ah, nice. I had forgotten about the wrapper tool.

Cheers
Ben

Attachment: signature.asc
Description: OpenPGP digital signature


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
Notifying systemd when IOC start is complete (plus showing progress) Konrad, Martin via Tech-talk

Navigate by Date:
Prev: Re: How to run IOC in docker containers properly Ben Franksen via Tech-talk
Next: Re: [EXTERNAL] Re: How to run IOC in docker containers properly Michael Davidsaver 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: Notifying systemd when IOC start is complete (plus showing progress) Konrad, Martin via Tech-talk
Next: Re: Re: How to run IOC in docker containers properly xiao zhang 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 
ANJ, 24 Jun 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·