ctdb-common: Add support for reopening logs