diff options
author | James Meyer <james.meyer@operamail.com> | 2013-05-22 13:59:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-05-22 13:59:01 (GMT) |
commit | af45a8d8c845649ef9ede55cd0204462cad0ad82 (patch) | |
tree | 85332fa12f3f2896516a60a3cc80cb7de90134b7 /abs/core/xymon/logrotate-client.xymon | |
parent | 7e6f7ca174e1af67178dc5293a312a4a733eb095 (diff) | |
download | linhes_pkgbuild-af45a8d8c845649ef9ede55cd0204462cad0ad82.zip linhes_pkgbuild-af45a8d8c845649ef9ede55cd0204462cad0ad82.tar.gz linhes_pkgbuild-af45a8d8c845649ef9ede55cd0204462cad0ad82.tar.bz2 |
xymon client/server: fix logrotate, so it doesn't create files like log.1.1.1.1.1.1.1..1.1.1.1.1 and use up all the inodes.
server: fix permissions on the snap reports
refs #921
Diffstat (limited to 'abs/core/xymon/logrotate-client.xymon')
-rwxr-xr-x[-rw-r--r--] | abs/core/xymon/logrotate-client.xymon | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/abs/core/xymon/logrotate-client.xymon b/abs/core/xymon/logrotate-client.xymon index a312b64..0fadb2e 100644..100755 --- a/abs/core/xymon/logrotate-client.xymon +++ b/abs/core/xymon/logrotate-client.xymon @@ -1,14 +1,15 @@ /home/xymon/client/logs/* { - missingok - size 512K - rotate 0 - compress - postrotate - if [ -f /service/xymon-client/run ] - then - sv hup xymon-client - fi + missingok + notifempty + size 512k + rotate 2 + compress + postrotate + if [ -f /service/xymon-client/run ] + then + sv hup xymon-client + fi - endscript + endscript } |