mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-17 19:56:19 +00:00
Changed syslogd to keep only 2 log files
This commit is contained in:
parent
e751e044b7
commit
d15308a613
1 changed files with 3 additions and 3 deletions
|
|
@ -22,14 +22,14 @@ ${reset}"
|
|||
}
|
||||
|
||||
# Reset logs
|
||||
for log in /var/log/mail/maillog{,.{0..9}} /var/log/mail/maillog.debug{,.{0..9}} /var/log/mail/reject.log
|
||||
for log in /var/log/mail/maillog{,.0} /var/log/mail/maillog.debug{,.0} /var/log/mail/reject.log
|
||||
do
|
||||
if [ ! -f ${log} ]
|
||||
then
|
||||
touch ${log}
|
||||
fi
|
||||
done
|
||||
syslogd -O /var/log/mail/maillog -s ${MYVEMAIL_LOG_SIZE:-2000000} -b 10
|
||||
syslogd -s ${MYVEMAIL_LOG_SIZE:-2000000} -b 2 # -O /var/log/mail/maillog
|
||||
|
||||
# Run all scripts in init folder
|
||||
for file in /docker-entrypoint/init.d/*.sh
|
||||
|
|
@ -43,4 +43,4 @@ postfix reload &&
|
|||
echo -e "\n\e[1;32mMail service is ready\e[0m\n"
|
||||
|
||||
# Monitor log
|
||||
tail -f /var/log/mail/maillog.debug{,.{0..9}} # /var/log/mail/maillog{,.{0..9}}
|
||||
tail -f /var/log/mail/maillog.debug{,.0} # /var/log/mail/maillog{,.0}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue