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

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

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


Cookies help us deliver our services. By using our services, you agree to our use of cookies.