mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
logrotate: Fix duplicate log entries.
The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate.
This fixes this by ensuring that a log file cannot
be referenced multiple times after expansion occurs.
Resolves: #96
ASTERISK-30442
Reported by: EN Barnett
Tested by: EN Barnett
(cherry picked from commit 22c9d52289
)
This commit is contained in:
committed by
Asterisk Development Team
parent
173c433274
commit
c8b7570cad
@@ -1,13 +1,13 @@
|
|||||||
__LOGDIR__/debug.log __LOGDIR__/console __LOGDIR__/full.log __LOGDIR__/messages.log __LOGDIR__/*log {
|
__LOGDIR__/*.log __LOGDIR__/queue_log __LOGDIR__/mmlog {
|
||||||
weekly
|
weekly
|
||||||
missingok
|
missingok
|
||||||
rotate 52
|
rotate 52
|
||||||
compress
|
compress
|
||||||
delaycompress
|
delaycompress
|
||||||
notifempty
|
notifempty
|
||||||
create 640 root root
|
create 640 root root
|
||||||
sharedscripts
|
sharedscripts
|
||||||
postrotate
|
postrotate
|
||||||
__SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
|
__SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user