This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_ротации_журналов [2026/08/02 08:35] val [Linux Logrotate] |
сервис_ротации_журналов [2026/08/02 08:39] (current) val [Linux Logrotate] |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| { | { | ||
| rotate 15 | rotate 15 | ||
| - | size 10000k #10M | + | #size 10000k |
| + | #size 10M | ||
| compress | compress | ||
| - | create 0640 syslog adm | + | #create 0640 syslog adm |
| + | #create 0640 root adm | ||
| postrotate | postrotate | ||
| /bin/systemctl reload rsyslog >/dev/null 2>&1 || true | /bin/systemctl reload rsyslog >/dev/null 2>&1 || true | ||
| Line 23: | Line 25: | ||
| } | } | ||
| </code><code> | </code><code> | ||
| - | # logrotate -d /etc/logrotate.d/cisco | + | # logrotate -d /etc/logrotate.d/mylogs |
| # logrotate /etc/logrotate.conf | # logrotate /etc/logrotate.conf | ||