Difference between revisions of "Limit the size of .log files & the journal"
Views
Actions
Namespaces
Variants
Tools
Limit the size of .log files & the journal (view source)
Revision as of 14:31, 15 August 2013
, 10 years ago→/etc/logrotate.conf & /etc/logrotate.d
imported>Handy |
imported>Handy |
||
Line 66: | Line 66: | ||
Applications such as Apache, MySQL, Cups & others, put scripts into the /etc/logrotate.d directory to manage their log files. | Applications such as Apache, MySQL, Cups & others, put scripts into the /etc/logrotate.d directory to manage their log files. | ||
If you manually run the command '''sudo logrotate | If you manually run the command '''sudo logrotate''', you will be presented with its usage template. logrotate needs you to specify the path to the script that you want it to use, including the logrotate.conf file which one may think due to its name would be automatically read, it is not. | ||
''' , you will be presented with its usage template. logrotate needs you to specify the path to the script that you want it to use, including the logrotate.conf file which one may think due to its name would be automatically read, it is not. | |||
To run logrotate & the logrotate.conf file you use the following command line: | To run logrotate & the logrotate.conf file you use the following command line: | ||
Line 102: | Line 101: | ||
<br clear="all"/> | <br clear="all"/> | ||
== Some uses for Logrotate == | == Some uses for Logrotate == | ||