logrotate в вращает, сжимает и отправляет системные журналы по почте (logrotate ‐ rotates, compresses, and mails system logs)
Параметры (Options)
-f, --force
Tells logrotate to force the rotation, even if it doesn't
think this is necessary. Sometimes this is useful after
adding new entries to a logrotate config file, or if old
log files have been removed by hand, as the new files will
be created, and logging will continue correctly.
-d, --debug
Turn on debug mode, which means that no changes are made
to the logs and the logrotate state file is not updated.
Only debug messages are printed.
-s, --state statefile
Tells logrotate to use an alternate state file. This is
useful if logrotate is being run as a different user for
various sets of log files. To prevent parallel execution
logrotate by default acquires a lock on the state file, if
it cannot be acquired logrotate will exit with value 3.
The default state file is /var/lib/logrotate.status. If
/dev/null is given as the state file, then logrotate will
not try to write the state file.
--skip-state-lock
Do not lock the state file, for example if locking is
unsupported or prohibited.
-v, --verbose
Turns on verbose mode, for example to display messages
during rotation.
-l, --log file
Tells logrotate to log verbose output into the log_file.
The verbose output logged to that file is the same as when
running logrotate with -v switch. The log file is
overwritten on every logrotate execution.
-m, --mail command
Tells logrotate which command to use when mailing logs.
This command should accept the following arguments:
1) the subject of the message given with '-s subject'
2) the recipient.
The command must then read a message on standard input and
mail it to the recipient. The default mail command is
/bin/mail.
--usage
Prints a short usage message.
-?, --help
Prints help message.
--version
Display version information.