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 23:26, 17 February 2017
, 7 years ago→Some uses for Logrotate
imported>Handy |
imported>Handy |
||
Line 262: | Line 262: | ||
The above script can be used as is, it does not need to be made executable, it just needs to be put somewhere that logrotate will see (in this example) every day. | The above script can be used as is, it does not need to be made executable, it just needs to be put somewhere that logrotate will see (in this example) every day. | ||
We can use the above script block as a template, easily removing parts & modifying its relatively simple settings. It can duplicated in a script with each script block specifying custom settings tailored for individual files. | We can use the above script block as a template, easily removing parts & modifying its relatively simple settings. It can be duplicated in a script with each script block specifying custom settings tailored for individual files. | ||
<br clear="all"/> | <br clear="all"/> | ||
== An Example that you can modify to suit == | == An Example that you can modify to suit == | ||