e3b5d99978
modular: the daemon itself (dicod) provides only the server functionality, but it knows nothing about database formats. Actual searches are performed by functions supplied in loadable modules. A single module can serve one or more databases. The package includes the following database modules: dictorg, guile, python, and outline. WWW: http://www.gnu.org/software/dico/ PR: ports/142504 Submitted by: Goran Tal
49 lines
865 B
Text
49 lines
865 B
Text
/* A sample configuration for GNU dicod */
|
|
|
|
capability (mime,xversion);
|
|
timing yes;
|
|
access-log-file "/var/log/dictd-access_log";
|
|
access-log-format "%h %l %u %t \"%r\" %>s %b \"\" \"%C\"";
|
|
|
|
load-module dict {
|
|
command "dictorg dbdir=/usr/local/share/dict";
|
|
}
|
|
|
|
load-module guile {
|
|
command "guile debug";
|
|
}
|
|
|
|
load-module python {
|
|
command "python";
|
|
}
|
|
|
|
database {
|
|
name "devdict";
|
|
handler "dict database=devils";
|
|
}
|
|
|
|
database {
|
|
name "plnum";
|
|
handler "guile"
|
|
" init-script=/usr/local/share/dict/example.scm"
|
|
" init-fun=example-init"
|
|
" example.db";
|
|
}
|
|
|
|
database {
|
|
name "cznum";
|
|
handler "python "
|
|
"load-path=/usr/local/share/dict "
|
|
"init-script=example "
|
|
"/usr/local/share/dict/example.text";
|
|
}
|
|
|
|
listen (localhost:dict, "/var/tmp/dict.sock");
|
|
max-children 10;
|
|
inactivity-timeout 5;
|
|
|
|
log-tag "Dico dictd";
|
|
|
|
server-info <<EOT
|
|
This is a test Dico server.
|
|
EOT;
|