Next: dgrey commands, Previous: dgrey signals, Up: Usage
dgrey can be controlled in various ways through a local connection or an authenticated public connection. This is done using the dgrey-cmd command.
If dgrey-cmd fails to send the command, it will exit with a non-zero status code. This will also happen if the dgrey daemon sends a negative or unexpected reply to commands.
dgrey-cmd is started in this way:
dgrey-cmd [OPTION].. COMMAND [ARGUMENT]...
Arguments are specified in the format KEY=VALUE. See examples below.
The following options are accepted:
-c, --connect=HOST:PORT-l, --local-connect-p, --public-connect-f, --config-file=FILE--local-connect is specified), and ‘public-listen’ and
‘auth-key’ (only if --public-connect is specified).
-q, --quiet-s, --stdin-i, --input-file=FILE--help--versionHere is an example to tell dgrey to rotate its log file:
dgrey-cmd -f /etc/dgrey/config -p -q rotate-action-log retain=20000