From: Jeremy Tan Date: Mon, 30 Sep 2013 03:12:17 +0000 (+0800) Subject: Use logrotate to rotate the logs everytime it starts X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=54fe09504c1d38053032bd99ef6f1ab1a6f34b08;p=matches%2FMCTX3420.git Use logrotate to rotate the logs everytime it starts --- diff --git a/server-configs/logrotate.d/mctxserv.conf b/server-configs/logrotate.d/mctxserv.conf new file mode 100644 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 +} + diff --git a/server/run.sh b/server/run.sh index 5c0c61f..4318b39 100755 Binary files a/server/run.sh and b/server/run.sh differ