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

Created page with "Помимо добавления собственных скриптов в /etc/logrotate.d (или по любому другому пути, который мы выбра..."
(Created page with "Некоторые приложения, такие как Apache или cups, помещают скрипты в /etc/logrotate.d, чтобы помочь в их самоо...")
(Created page with "Помимо добавления собственных скриптов в /etc/logrotate.d (или по любому другому пути, который мы выбра...")
Line 231: Line 231:
  include /home/handy/.config/mylogrotate
  include /home/handy/.config/mylogrotate


Apart from adding our own scripts to /etc/logrotate.d (or any other path that we have chosen to include), we can also add scripts into any of the previously mentioned '''/etc/ cron.hourly cron.daily cron.weekly cron.monthly''' folders. OR we can add a script into any of these folders that suit our needs that runs the logrotate /etc/logrotate.conf command which will have the logrotate.conf file, direct logrotate to the default /etc/logrotate.d directory where we have our script(s). OR to another directory where we have our script & have included the path in logrotate.conf . whew!
Помимо добавления собственных скриптов в /etc/logrotate.d (или по любому другому пути, который мы выбрали), мы также можем добавить скрипты в любой из ранее упомянутых каталогов '''/etc/ cron.hourly cron.daily cron.weekly cron.monthly'''. ИЛИ мы можем добавить скрипт в любой из этих каталогов, подходящих для наших нужд, запускающий команду logrotate /etc/logrotate.conf, которая будет имея файл logrotate.conf, направлять logrotate в каталог по умолчанию /etc/logrotate.d, где у нас есть наш скрипт(ы). ИЛИ в другой каталог, где находится наш скрипт, и вложенный (через include) в logrotate.conf. Вот это да!


So you can see there are a variety of ways to call logrotate (let alone use it).
So you can see there are a variety of ways to call logrotate (let alone use it).
translator
11,294

edits