diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-12 08:27:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 08:27:00 +0100 |
commit | 1e17d1d45a0952bab53af46d6c4dfe15ebb1110e (patch) | |
tree | e7fa2ca22a16cc2ffe2dda2931494667af985e75 /src/etc/logrotate.d/vyos-rsyslog | |
parent | 2d3f5a03de3ebfd381582e36801c7e63d2493c71 (diff) | |
parent | ebb524702e1cd60a74b00727b7bd24d375648c78 (diff) | |
download | vyos-1x-1e17d1d45a0952bab53af46d6c4dfe15ebb1110e.tar.gz vyos-1x-1e17d1d45a0952bab53af46d6c4dfe15ebb1110e.zip |
Merge pull request #1241 from zdc/T4250-sagitta
logrotate: T4250: Fixed logrotate config generation
Diffstat (limited to 'src/etc/logrotate.d/vyos-rsyslog')
-rw-r--r-- | src/etc/logrotate.d/vyos-rsyslog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/logrotate.d/vyos-rsyslog b/src/etc/logrotate.d/vyos-rsyslog new file mode 100644 index 000000000..3c087b94e --- /dev/null +++ b/src/etc/logrotate.d/vyos-rsyslog @@ -0,0 +1,12 @@ +/var/log/messages { + create + missingok + nomail + notifempty + rotate 10 + size 1M + postrotate + # inform rsyslog service about rotation + /usr/lib/rsyslog/rsyslog-rotate + endscript +} |