Previous: Controlling the Daemon, Up: Usage


8.7 dgrey commands

This section lists all commands that dgrey accepts through dgrey-cmd.

ping
This command can be used to test if the daemon is alive and answering requests.
terminate
This command tells the daemon to terminate itself.
database-maintenance
Tell dgrey to start the database maintenance. This may be quite time consuming, since all entries in the databases will be iterated and old ones will be discarded. The log file will tell how long the maintenance took.
rotate-action-log
Remove old parts of the action log. The retain argument specifies number of bytes to keep in the log file (10000 if not specified). (Note that complete lines are kept, which means the new log file may not be exactly this large.)

This is done to keep the file from growing too large.

reload-whitelist-files
Reload the whitelist files specified in the configuration file.
write-poll-host-offsets
Write poll host offsets to the database directory. (This could be considered a partial "sync" operation.)
check-config-file
Read the configuration file and check its syntax.
reload-config-file
Reload the configuration file.
reconnect-poll-hosts
Attempt to immediately connect to poll hosts, if there are unconnected poll hosts.
reopen-log-file
Close the current log file and open it again. This is often necessary after log rotation.
poll
This command is used internally between dgrey nodes to start synchronizing data.
dump-greylist-database
dump-awl-database
These commands outputs the greylist and awl database, respectively, one record per line, key first then value (tab separated). You can use the dgrey-restore command to restore the database. Database management.