Difference between revisions of "Limit the size of .log files & the journal"

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 ==


Anonymous user