Skip to content

Commit 2159ec8

Browse files
InterLinked1gtjoseph
authored andcommitted
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
1 parent 5dac935 commit 2159ec8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/scripts/asterisk.logrotate

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
__LOGDIR__/debug.log __LOGDIR__/console __LOGDIR__/full.log __LOGDIR__/messages.log __LOGDIR__/*log {
1+
__LOGDIR__/*.log __LOGDIR__/queue_log __LOGDIR__/mmlog {
22
weekly
33
missingok
44
rotate 52
55
compress
66
delaycompress
77
notifempty
8-
create 640 root root
8+
create 640 root root
99
sharedscripts
1010
postrotate
11-
__SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
11+
__SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
1212
endscript
13-
}
13+
}

0 commit comments

Comments
 (0)