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

Created page with "Некоторые приложения, такие как Apache или cups, помещают скрипты в /etc/logrotate.d, чтобы помочь в их самоо..."
(Created page with "=== Могу ли я хранить свои скрипты где хочу? ===")
(Created page with "Некоторые приложения, такие как Apache или cups, помещают скрипты в /etc/logrotate.d, чтобы помочь в их самоо...")
Line 227: Line 227:
=== Могу ли я хранить свои скрипты где хочу? ===
=== Могу ли я хранить свои скрипты где хочу? ===


Some applications such as Apache cups, drop scripts into /etc/logrotate.d to aid in their own self maintenance. We can use a location of our choosing for these or other scripts if we want. We just have to call its path in the /etc/logrotate.conf file, the same way, as shown in the following example:
Некоторые приложения, такие как Apache или cups, помещают скрипты в /etc/logrotate.d, чтобы помочь в их самообслуживании. Мы можем использовать для этих или других скриптов любое место по своему усмотрению. Мы просто должны указать путь к нему в файле /etc/logrotate.conf, как показано в следующем примере:


  include /home/handy/.config/mylogrotate
  include /home/handy/.config/mylogrotate
translator
10,735

edits