CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
logrotate |
logrotate [options] config_files System administration command. Manipulate log files according to commands given in config_files. Options-d Debug mode. No changes will be made to log files. -s, --state file Save state information in file. The default is /var/lib/logrotate.status. --usage Usage version and copyright information. Commandscompress Compress old versions of log files with gzip. copytruncate Copy log file, then truncate it in place. For use with programs whose logging cannot be temporarily halted. create [permissions] [owner] [group] After rotation, re-create log file with the specified permissions, owner, and group. permissions must be in octal. If any of these parameters is missing, the log file's original attributes will be used. daily Rotate log files every day. delaycompress Don't compress log file until the next rotation. errors address Mail any errors to the given address. endscript End a postrotate or prerotate script. ifempty Rotate log file even if it is empty. Overrides the default notifempty option. include file Read the file into current file. If file is a directory, read all files in that directory into the current file. mail address Mail any deleted logs to address. monthly Rotate log files only the first time logrotate is run in a month. nocompress Override compress. nocopytruncate Override copytruncate. nocreate Override create. nodelaycompress Override delaycompress. noolddir Override olddir. notifempty Override ifempty. olddir directory Move logs into directory for rotation. directory must be on the same physical device as the original log files. postrotate Begin a script of directives to apply after the log file is rotated. The script ends when the endscript directive is read. prerotate Begin a script of directives to apply before a log file is rotated. The script ends when the endscript directive is read. rotate number The number of times to rotate a log file before removing it. size n[k|M] Rotate log file when it is greater than n bytes. n can optionally be followed by k for kilobytes or M for megabytes. |
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 623
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved