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

Created page with "Экспериментируя с приведенными выше командами, можно принять обоснованное решение, хотя, как у..."
(Created page with "Журнал Systemd способен выполнять расширенные функции, выходящие за рамки того, что было упомянуто...")
(Created page with "Экспериментируя с приведенными выше командами, можно принять обоснованное решение, хотя, как у...")
Line 172: Line 172:
Журнал Systemd способен выполнять расширенные функции, выходящие за рамки того, что было упомянуто здесь. Вышеизложенное является очень хорошей пищей для размышлений для людей, задающихся вопросом, нужно ли им запускать '''syslog-ng''' или что-то подобное, что создает большинство файлов '''/var/log/*log'''' в их системах.
Журнал Systemd способен выполнять расширенные функции, выходящие за рамки того, что было упомянуто здесь. Вышеизложенное является очень хорошей пищей для размышлений для людей, задающихся вопросом, нужно ли им запускать '''syslog-ng''' или что-то подобное, что создает большинство файлов '''/var/log/*log'''' в их системах.


By experimenting with the above commands one can make an informed decision for themselves, though as mentioned at the beginning of the Journal section, Arch & therefore Manjaro still run both the new systemd journal & the old style log file system in parallel. So if you find the /var/log/*log files to be redundant & you want to be rid of them, various methods would be effective.
Экспериментируя с приведенными выше командами, можно принять обоснованное решение, хотя, как уже упоминалось в начале раздела "Журнал", Arch и, соответственно, Manjaro все еще работают параллельно с новым журналом systemd и файловой системой журналов старого стиля. Поэтому, если вы считаете файлы /var/log/*log избыточными и хотите избавиться от них - эффективными будут различные методы.


As of this writing I'm running my system with '''syslog-ng''' (& its dependency) deleted. I deleted all of the log files from the /var/log directory (leaving any that are in their own sub-directories), except for Xorg.0.log , Xorg.0.old , lastlog , btmp & wtmp, (pacman.log turned up when pacman was used, depending on what you have installed on your system, you may have applications that create their own logs - which can be turned off - too). (Note: These days I'm systemd free as I've been very happily using the OpenRC init system instead.)  
As of this writing I'm running my system with '''syslog-ng''' (& its dependency) deleted. I deleted all of the log files from the /var/log directory (leaving any that are in their own sub-directories), except for Xorg.0.log , Xorg.0.old , lastlog , btmp & wtmp, (pacman.log turned up when pacman was used, depending on what you have installed on your system, you may have applications that create their own logs - which can be turned off - too). (Note: These days I'm systemd free as I've been very happily using the OpenRC init system instead.)  
translator
10,735

edits