ctdb-common: Factor out basic script abstraction
authorMartin Schwenke <martin@meltin.net>
Thu, 12 Jul 2018 03:20:55 +0000 (13:20 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 31 Jul 2018 10:36:28 +0000 (12:36 +0200)
commit4cce86e872b10f387988dbf6c06303c55bfb6018
tree5d0fbe3fa21e0b418b7a5ef12026a7333a30cbca
parent34aba6f9ef373b1e654e13f0bbe802087c1a4ec6
ctdb-common: Factor out basic script abstraction

Provides for listing of scripts and chmod enable/disable.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13551

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit a7a4ee439dc1cf262b4da9fbcb38a2f69c62744c)
ctdb/common/event_script.c [new file with mode: 0644]
ctdb/common/event_script.h [new file with mode: 0644]
ctdb/tests/cunit/event_script_test_001.sh [new file with mode: 0755]
ctdb/tests/src/event_script_test.c [new file with mode: 0644]
ctdb/wscript