[PATCH] Refactor run_event abstraction from ctdb_eventd

Martin Schwenke martin at meltin.net
Mon May 29 05:20:03 UTC 2017


On Thu, 25 May 2017 15:57:26 +1000, Amitay Isaacs via samba-technical
<samba-technical at lists.samba.org> wrote:

> Separating event daemon to handle event scripts from CTDB daemon will serve
> as a template to create a new daemon running under CTDB.  In the new
> modular design of CTDB (presented at SambaXP 2017), event scripts will be
> used by service manager and IP failover.  This means that the eventd will
> go away and the same functionality will be used by service manager and IP
> failover.
> 
> These patches create a new run_event abstraction to allow running
> eventscripts and capturing their status.  This will help in writing service
> manager and IP failover daemons.  The run_event abstraction is created by
> refactoring generic code eventd.
> 
> The patches also include:
> - extension to run_proc abstraction to allow redirecting stdin for child
> processes,
> - fix the return code from ctdb_event tool.
> 
> Please review and push.

Reviewed-by: Martin Schwenke <martin at meltin.net>

Pushed with minor changes discussed (comment typo fix, realloc of argv
array instead of fixed size, avoid printf of NULL).

peace & happiness,
martin



More information about the samba-technical mailing list