Use logrotate to rotate the logs everytime it starts
[matches/MCTX3420.git] / server-configs / logrotate.d / mctxserv.conf
diff --git a/server-configs/logrotate.d/mctxserv.conf b/server-configs/logrotate.d/mctxserv.conf
new file mode 100644 (file)
index 0000000..8bbf99e
--- /dev/null
@@ -0,0 +1,14 @@
+/var/log/mctxserv*.log
+{
+        rotate 4
+        daily
+        missingok
+        notifempty
+        compress
+        delaycompress
+        sharedscripts
+        postrotate
+                invoke-rc.d rsyslog rotate > /dev/null
+        endscript
+}
+

UCC git Repository :: git.ucc.asn.au