Redirect roundcube logs to syslog

This commit is contained in:
Myve 2024-08-19 02:08:47 +00:00
commit 41e5941d01
3 changed files with 10 additions and 21 deletions

View file

@ -22,7 +22,7 @@ ${reset}"
}
# Reset logs
echo | tee /var/log/maillog /usr/share/webapps/roundcube/logs/errors.log >/dev/null
echo | tee /var/log/maillog /var/log/maillog.debug >/dev/null
syslogd -O /var/log/maillog
# Run all scripts in init folder
@ -37,4 +37,4 @@ postfix reload &&
echo -e "\n\e[1;32mMail service is ready\e[0m\n"
# Monitor log
tail -f /var/log/maillog /usr/share/webapps/roundcube/logs/errors.log
tail -f /var/log/maillog