git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
server-configs/logrotate.d/mctxserv.conf
@@ -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