summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/logrotate-server.xymon
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xymon/logrotate-server.xymon')
-rw-r--r--abs/core/xymon/logrotate-server.xymon14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/xymon/logrotate-server.xymon b/abs/core/xymon/logrotate-server.xymon
new file mode 100644
index 0000000..e69c5d9
--- /dev/null
+++ b/abs/core/xymon/logrotate-server.xymon
@@ -0,0 +1,14 @@
+/var/log/hobbit/* {
+ missingok
+ daily
+ rotate 2
+ compress
+ postrotate
+ if [ -f /service/xymon-server/run ]
+ then
+ sv hup xymon-server 2&>1 > /dev/null
+ fi
+
+ endscript
+
+}