logrotate命令及配置
logrotate [options] config_files
System administration command. Manipulate logfiles according to commands given in config_files.
Options
-d, –debug
Debug mode. No changes will be made to logfiles.
-f, –force
Force rotation of logfiles.
-h, –help
Describe options.
-m command, –mail command
Use the specified command to mail logfiles. The default command is /bin/mail -s.
-s file, –state file
Save state information in file. The default is /var/lib/logrotate.status.
–usage
Show syntax and options.
-v, –verbose
Describe what is being done and what logfiles are affected.


