Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| unbound:when-unbound-wont-write-logs [2019/10/22 18:13] – Anthony | unbound:when-unbound-wont-write-logs [2019/10/28 11:16] (текущий) – Anthony | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== When Unbound Won't Write Logs ====== | ====== When Unbound Won't Write Logs ====== | ||
| + | |||
| Since I have set up my own e-mail server solution, I am using unbound as a local reverse DNS for rspamd. It works great… So great, that I haven’t noticed that it does not log anything until today… | Since I have set up my own e-mail server solution, I am using unbound as a local reverse DNS for rspamd. It works great… So great, that I haven’t noticed that it does not log anything until today… | ||
| Error as seen when restarting the service or looking into syslog: | Error as seen when restarting the service or looking into syslog: | ||
| - | <WRAP center round info 60%> | + | |
| + | <code> | ||
| error Could not open logfile / | error Could not open logfile / | ||
| - | </WRAP> | + | |
| + | </code> | ||
| The permissions on the file are okay, but the problem was with apparmor. | The permissions on the file are okay, but the problem was with apparmor. | ||
| So to fix the issue, we have to edit the settings: | So to fix the issue, we have to edit the settings: | ||
| - | <WRAP center round info 60%> | + | |
| + | <code> | ||
| $ vim / | $ vim / | ||
| - | </WRAP> | + | |
| + | </code> | ||
| Add this line: | Add this line: | ||
| - | <WRAP center round info 60%> | + | |
| + | <code> | ||
| # Site-specific additions and overrides for usr.sbin.unbound. | # Site-specific additions and overrides for usr.sbin.unbound. | ||
| # For more details, please see / | # For more details, please see / | ||
| / | / | ||
| - | </WRAP> | + | |
| + | </code> | ||
| Reload apparmor config and restart unbound services: | Reload apparmor config and restart unbound services: | ||
| - | <WRAP center round info 60%> | + | |
| - | # apparmor_parser -r / | + | <code> |
| + | # apparmor_parser -r / | ||
| + | |||
| + | </ | ||
| + | < | ||
| service unbound restart | service unbound restart | ||
| - | </WRAP> | + | |
| + | </code> | ||