Next: , Previous: , Up: The dicod daemon.   [Contents][Index]


4.4 Dicod Exit Codes

Apart from issuing a descriptive error message, dicod attempts to indicate the reason of its termination by its error code. As usual, a zero exit code indicates normal termination. The table below summarizes all possible error codes. For each error code, it indicates its decimal value and its symbolic name from include/sysexits.h (if available).

0
EX_OK

Program terminated correctly.

2

Only child instances of dicod exit with this code. It indicates that the child did not receive any ‘DICT’ command within the time out interval (see inactivity-timeout).

64
EX_USAGE

The program was invoked incorrectly, e.g. an invalid option was given, or an erroneous argument was supplied to an option.

67
EX_NOUSER

Dicod cannot switch to the privileges of the user it is configured to run as (see user statement).

69
EX_UNAVAILABLE

The server exited due to some error not otherwise described in this table.

70
EX_SOFTWARE

Some internal software error occurred.

71
EX_OSERR

Some system error occurred, e.g. the program ran out of memory, or file descriptors, or ‘fork’ failed, etc.

78
EX_CONFIG

An error in the configuration file was detected.