DICOD(8) | GNU Dico Reference | DICOD(8) |
dicod - GNU dictionary server
dicod [-ETVfist] [-D SYMBOL[=VALUE]] [-I DIR] [-L DIR] [-x LEVEL-SPEC] [--config=FILE] [--config-help] [--debug=LEVEL-SPEC] [--define=SYMBOL[=VALUE]] [--foreground] [--include-dir=DIR] [--inetd] [--lib-dir=DIR] [--lint] [--no-preprocessor] [--no-transcript] [--preprocessor=PROG] [--single-process] [--source-info] [--stderr] [--syslog] [--trace-grammar] [--trace-lex] [--transcript]
dicod [OPTIONS] -r|--runtest MODULE [ARG...] [-- ARG...]
dicod -h
dicod --help
dicod --usage
dicod --version
This manpage is a short description of GNU dicod. For a detailed discussion, including examples and usage recommendations, refer to the GNU Dico Manual available in texinfo format. If the info reader and GNU Dico documentation are properly installed on your system, the command
should give you access to the complete manual.
You can also view the manual using the info mode in emacs(1), or find it in various formats online at
If any discrepancies occur between this manpage and the GNU Dico Manual, the later shall be considered the authoritative source.
Dicod is a dictionary server daemon. It implements the DICT protocol defined in RFC 2229.
Dicod is a part of GNU Dico, a package that provides, apart from the server itself, a set of loadable modules and a command line client program dico(1).
Upon startup, the server reads its configuration file /etc/dicod.conf, loads and initializes the dictionary modules defined there and starts serving requests.
When started in daemon mode (which is the default), dicod listens for incoming connections on sockets requested in its configuration. When an incoming connection arrives, the server spawns a copy of itself dedicated for serving that particular connection. Unless configured otherwise, in this mode dicod detaches itself from the controlling terminal and operates in background.
In inetd mode the server listens on DICT requests on its standard input stream and sends replies to its standard output stream. As the name indicates, this mode is intended for use with inetd(8) or a similar daemon.
When running unit tests, configuration file is ignored. The diagnostic messages are printed to the standard error output.
Prior to parsing, dicod configuration file is preprocessed using m4(1). It is invoked with `-s' flag, instructing it to include line synchronization information in its output. This information is then used by the parser to display meaningful diagnostic.
The include path is set initially to the following two directories:
/usr/share/dico/2.10/include
/usr/share/dico/include
It can be further modified using the -I (--include-directory) command line option.
If the file pp-setup is found in the include path, it is sourced before the configuration file. This can be used to provide macros and constants for the configuration.
The default pp-setup file changes the quote characters to [ and ], and renames all m4 built-in macros so they start with the prefix m4_. The latterr has the effect similar to that of GNU m4 --prefix-builtin option, but has an advantage that it works with other m4 implementations as well.
Additional definitions can also be provided from the command line using the -D (--define) option.
To view preprocessed configuration, use the -E option. It prints the preprocessed text on the standard output.
To disable preprocessing, use the --no-preprocessor option.
dicod.conf(5), dico(1), RFC 2229.
Complete GNU Dico manual: run info dico or use emacs(1) info mode to read it.
Online copies of GNU Dico documentation in various formats can be found at:
http://www.gnu.org.ua/software/dico/manual
Sergey Poznyakoff
Report bugs to <bug-dico@gnu.org.ua>.
Copyright © 2008-2018 Sergey Poznyakoff
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
September 25, 2018 | GNU DICO |