ctdb-event: Allow tool to enable/disable scripts without daemon
authorMartin Schwenke <martin@meltin.net>
Sat, 7 Jul 2018 23:02:44 +0000 (09:02 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 11 Jul 2018 09:48:38 +0000 (11:48 +0200)
commit2546c439599565f33e4c905d1c73858026e37439
treef26aa3c05e14efa68e05ca61e4607dcf5a8bd2f1
parent6742bf6cf65cf40b54910ee254a3e863be141e85
ctdb-event: Allow tool to enable/disable scripts without daemon

Only open the client socket when it is needed.  Note that this only
works for enabling/disabling event scripts via symlinks.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/event/event_tool.c