mirror of https://github.com/apache/cloudstack.git
Merge pull request #1915 from serbaut/CLOUDSTACK-9746
CLOUDSTACK-9746 system-vm: logrotate config causes critical failures* rotate both daily and by size by using maxsize in stead of size * decrease the max size to 10M for rsyslog files * remove delaycompress for rsyslog files * increase rotate to 10 for cloud.log * pr/1915: CLOUDSTACK-9746 system-vm: logrotate config causes critical failures Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
commit
113ce13bda
|
|
@ -4,6 +4,6 @@
|
|||
rotate 3
|
||||
compress
|
||||
dateext
|
||||
size 10M
|
||||
maxsize 10M
|
||||
notifempty
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
/var/log/cloud.log {
|
||||
rotate 4
|
||||
rotate 10
|
||||
daily
|
||||
size 10M
|
||||
maxsize 10M
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/var/log/conntrackd-stats.log {
|
||||
daily
|
||||
size 10M
|
||||
maxsize 10M
|
||||
rotate 2
|
||||
missingok
|
||||
compress
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/var/log/dnsmasq.log {
|
||||
daily
|
||||
size 10M
|
||||
maxsize 10M
|
||||
missingok
|
||||
rotate 5
|
||||
notifempty
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
rotate 5
|
||||
missingok
|
||||
notifempty
|
||||
size 10M
|
||||
maxsize 10M
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/rsyslog.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/var/log/ppp-connect-errors {
|
||||
daily
|
||||
size 10M
|
||||
maxsize 10M
|
||||
rotate 5
|
||||
missingok
|
||||
notifempty
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@
|
|||
{
|
||||
rotate 7
|
||||
daily
|
||||
size 50M
|
||||
maxsize 10M
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
postrotate
|
||||
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
|
||||
|
|
@ -27,11 +26,10 @@
|
|||
{
|
||||
rotate 10
|
||||
daily
|
||||
size 50M
|
||||
maxsize 10M
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue