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  2020  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>, "Smith, William" <william.smith at helmholtz-berlin.de>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 3 Aug 2021 10:34:38 -0700
On 8/3/21 10:22 AM, Kasemir, Kay wrote:
>  
>> > I am using manage-procs to deploy and manage IOC’s using systemd. ..network drive over nfs at boot that contains the built IOC binaries
> 
>> I think that "After=network.target remote-fs.target" should be enough to ensure ordering.  You could try adding
>> "Requires=network.target remote-fs.target".
> 
> I think we had similar issues with network mounts not being up in time for the IOCs to start when we had just this in the IOC systemd files:
> 
> Requires=autofs.service
> 
> The following belt-and-suspenders approach fixed the problem, though I'm not sure exactly why:
> 
> Requires=autofs.service

I would be reluctant to blindly add this as I think it would make manage-procs
unusable by default for installations w/o autofs.  If a Requires= turns out to
be necessary, manage-procs would probably have to detect this somehow.

This is actually redundant to "BindsTo=autofs.service".

> After=autofs.service

This seems reasonable, and would hopefully be sufficient by itself.

> Wants=autofs.service

This should probably be ok, but would need some testing.  I would expect that
if autofs is installed, that it is installed and should be running.

> BindsTo=autofs.service


cf. https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Wants=

Replies:
Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Ernesto Paiser via Tech-talk
References:
Autostart with manage-procs and network mounts Smith, William via Tech-talk
Re: Autostart with manage-procs and network mounts Michael Davidsaver via Tech-talk
Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Kasemir, Kay via Tech-talk
Next: Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Ernesto Paiser 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  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Kasemir, Kay via Tech-talk
Next: Re: [EXTERNAL] Re: Autostart with manage-procs and network mounts Ernesto Paiser 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  2020  <20212022  2023  2024 
ANJ, 03 Aug 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·