diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2017-04-08 10:27:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2017-04-08 10:58:47 +0000 |
commit | c1abaace560accadf985684411357e9387c144c0 (patch) | |
tree | 6eba1363e3c874f452fd981ba9264f13b869a17d /share/logrotate | |
parent | Initial commit. (diff) | |
download | open-infrastructure-storage-tools-c1abaace560accadf985684411357e9387c144c0.tar.xz open-infrastructure-storage-tools-c1abaace560accadf985684411357e9387c144c0.zip |
Adding upstream version 20170405.upstream/20170405
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/logrotate')
-rw-r--r-- | share/logrotate/ceph-log | 17 | ||||
-rw-r--r-- | share/logrotate/cephfs-snap | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/share/logrotate/ceph-log b/share/logrotate/ceph-log new file mode 100644 index 0000000..cdf8bc7 --- /dev/null +++ b/share/logrotate/ceph-log @@ -0,0 +1,17 @@ +/var/log/storage-tools/ceph-log/ceph-watch.log { + compress + create 0644 root root + dateext + dateformat -%Y%m%d + dateyesterday + missingok + daily + notifempty + rotate 365 + prerotate + service ceph-log stop > /dev/null 2>&1 + endscript + postrotate + service ceph-log start > /dev/null 2>&1 + endscript +} diff --git a/share/logrotate/cephfs-snap b/share/logrotate/cephfs-snap new file mode 100644 index 0000000..e948edf --- /dev/null +++ b/share/logrotate/cephfs-snap @@ -0,0 +1,11 @@ +/var/log/storage-tools/cephfs-snap/cephfs-snap.log { + compress + create 0640 root adm + dateext + dateformat -%Y%m + dateyesterday + missingok + monthly + notifempty + rotate 12 +} |