See confd_init() in the confd_lib_lib(3) man page and for example here: How confd interacts with the application?