I have imported the email@example.com in the 6-c_config. When make start, it raised the following error
zhaohongji@ubuntu:~/confd-6.4.3/examples.confd/intro/6-c_config$ make start *### Killing any confd daemon and HOSTS confd agents /home/zhaohongji/confd-6.4.3/bin/confd --stop || true killall hosts || true hosts: no process found /home/zhaohongji/confd-6.4.3/bin/confd -c confd.conf --addloadpath /home/zhaohongji/confd-6.4.3/etc/confd *### * In one terminal window, run: tail -f ./confd.log *### * In another terminal window, run queries *### (try 'make query' for an example) *### * In this window, the HOSTS confd daemon now starts: ./hosts Starting with empty DB DEBUG Library MAXDEPTH/MAXKEYLEN 20/9 for confd_hkeypath_t are too small, ConfD needs 28/4 Failed to load schemas from confd Makefile:59: recipe for target 'start' failed make: *** [start] Error 1
The confd userguide suggests that tuning the size of confd_hkeypath_t. I recompiled the libconfd source code by the following commands and generated libconfd.a and libconfd.so.
make EXTRA_CFLAGS="-DMAXDEPTH=28 -DMAXKEYLEN=4"
I used the latest libconfd.a and libconfd.so to replace the old ones.
zhaohongji@ubuntu:~/confd-6.4.3/lib$ pwd /home/zhaohongji/confd-6.4.3/lib zhaohongji@ubuntu:~/confd-6.4.3/lib$ ll *libconfd* -rw-r--r-- 1 zhaohongji zhaohongji 4463082 Dec 12 23:40 libconfd.a -rwxr-xr-x 1 zhaohongji zhaohongji 1918344 Dec 12 23:40 libconfd.so*
At last it still raised the error. Who knows how to deal with it? Thanks a lot!