WIP: Generate config file for ctld