ctdb-scripts: Implement failcount handling with thresholds
commit8303c3a534fe2d31687d9d6386ba9c8a341c7a06
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 3 Mar 2023 06:49:05 +0000 (3 17:49 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 3 Oct 2023 03:53:35 +0000 (3 03:53 +0000)
tree33deca3119d1acc36a3f1316b67f21b53d99266a
parent4981984dd4794d0b8cb5b3cf434fc1d1ae183bfd
ctdb-scripts: Implement failcount handling with thresholds

This can be used for simple failure counting, without restarts, as
used in the 40.vsftpd event script.  That case will subsequently be
converted and this functionality can also be used elsewhere.

Add documentation to ctdb-script.options(5) to allow parameters that
use this to be more easily described.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions
ctdb/doc/ctdb-script.options.5.xml