[PATCH] Refactor run_event abstraction from ctdb_eventd

Amitay Isaacs amitay at gmail.com
Thu May 25 05:57:26 UTC 2017


Hi,

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.

Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 66587 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170525/6516095a/ctdb.bin>


More information about the samba-technical mailing list