Merge "Modify mtce daemon log rotation config files"

This commit is contained in:
Zuul 2021-04-12 21:45:08 +00:00 committed by Gerrit Code Review
commit 412ff83f25
9 changed files with 109 additions and 89 deletions

View File

@ -1,17 +1,19 @@
#daily
nodateext
start 1
compress
copytruncate
notifempty
missingok
#
# Copyright (c) 2018-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/mtcalarmd.log
{
create 0640 root root
start 1
size 10M
rotate 20
sharedscripts
compress
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

View File

@ -1,15 +1,19 @@
#daily
nodateext
#
# Copyright (c) 2015-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/fsmond.log
{
size 10M
create 0640 root root
start 1
missingok
size 10M
rotate 20
compress
sharedscripts
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

View File

@ -1,16 +1,19 @@
#daily
nodateext
#
# Copyright (c) 2020-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/hostwd.log
{
nodateext
size 10M
create 0640 root root
start 1
missingok
size 10M
rotate 20
compress
sharedscripts
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

View File

@ -1,28 +1,21 @@
#daily
nodateext
start 1
missingok
notifempty
compress
sharedscripts
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
#
# Copyright (c) 2020-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/hwmond.log
{
size 50M
rotate 5
}
/var/log/hwmond_event.log
{
size 50M
rotate 5
}
/var/log/hwmond_api.log
{
create 0640 root root
start 1
size 50M
rotate 5
compress
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

View File

@ -1,16 +1,19 @@
#daily
nodateext
#
# Copyright (c) 2020-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/lmond.log
{
nodateext
size 10M
create 0640 root root
start 1
missingok
size 10M
rotate 20
compress
sharedscripts
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

15
mtce/src/pmon/scripts/pmon.logrotate Executable file → Normal file
View File

@ -1,16 +1,19 @@
#daily
nodateext
#
# Copyright (c) 2015-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/pmond.log
{
nodateext
size 10M
create 0640 root root
start 1
missingok
size 10M
rotate 20
compress
sharedscripts
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}

0
mtce/src/pmon/scripts/pmond.conf Executable file → Normal file
View File

View File

@ -1,7 +1,11 @@
#
# Copyright (c) 2020-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
/var/log/crash/vmcore.tar
/var/log/crash/vmcore_first.tar
{
nodateext
size 1K
start 1
rotate 1

View File

@ -1,59 +1,67 @@
#daily
# Apply all these options to all the logs
nodateext
start 1
compress
notifempty
missingok
sharedscripts
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
#
# Copyright (c) 2015-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
/var/log/mtcAgent.log
{
size 100M
create 0640 root root
start 1
rotate 10
size 100M
compress
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}
/var/log/hbsAgent.log
{
size 20M
rotate 5
}
/var/log/mtcClient.log
{
size 20M
rotate 5
}
/var/log/hbsClient.log
{
size 20M
create 0640 root root
start 1
rotate 5
size 20M
compress
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}
/var/log/mtclogd.log
{
size 10M
create 0640 root root
start 1
rotate 5
size 10M
compress
notifempty
missingok
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
delaycompress
}
# The mtclogd opens and closes these log files on every log addition.
# Therefore does not require a notification over log rotation.
/var/log/mtcAgent_event.log
/var/log/mtcAgent_alarm.log
/var/log/mtcAgent_api.log
{
size 20M
create 0640 root root
start 1
rotate 5
}
/var/log/mtcAgent_event.log
{
size 20M
rotate 5
}
/var/log/mtcAgent_alarm.log
{
size 10M
rotate 5
compress
notifempty
missingok
delaycompress
}