On 05/30/2017 06:42 PM, Andrew Johnson wrote:
> Hi Michael,
>
> On 05/25/2017 09:06 AM, Michael Davidsaver wrote:
>> I've realized that I need to hook into iocShutdown() to be able to
>> automatically shutdown QSRV during unittests. I need to do so during
>> the "stop" phase (eg. scanStop()) before records and lockSets are free'd.
>>
>> My first though would be to use initHooks.h. So I'd like to add
>>
>> * initHookAtShutdown - at start of iocShutdown()
>> * initHookAfterCloseLinks - after dbCaShutdown()
>> * initHookAtStopped - Just after iocShutdown() returns
>
> No objections in principle, but a cleaner option might be to add methods
> to the dbServer structure (which QSRV should support if possible) and
> make the rsrv_init(), rsrv_run() and rsrv_pause() calls in iocInit into
> calls to all registered servers through this interface. The
> dbRegisterServer() call in rsrv_init() would move into a registrar
> routine referenced in a new rsrv.dbd file.
I'm going to add the (de) initHooks anyway as this is something would
have been helpful to me before for driver work.
I don't see what you're getting at wrt. dbServer. How would this be
cleaner than an initHook? Seems the same to me. Were you thinking to
pass in some additional arguments?
> Will QSRV support pausing? This was added for DESY's hot-standby work; I
> don't see it as particularly important, but QSRV should probably display
> a warning message when someone tries to use it if it's not supported.
No plans. I hadn't considered this as I've never paused RSRV.
- Replies:
- Re: iocShutdown() hooks Andrew Johnson
- Re: iocShutdown() hooks Michael Davidsaver
- References:
- iocShutdown() hooks Michael Davidsaver
- Re: iocShutdown() hooks Andrew Johnson
- Navigate by Date:
- Prev:
Build failed in Jenkins: epics-base-3.15-win64-test #112 APS Jenkins
- Next:
Build failed in Jenkins: epics-base-3.15-win64-test #113 APS Jenkins
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: iocShutdown() hooks Andrew Johnson
- Next:
Re: iocShutdown() hooks Andrew Johnson
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|