Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| unbound:when-unbound-wont-write-logs [2019/10/28 11:12] – Anthony | unbound:when-unbound-wont-write-logs [2019/10/28 11:16] (текущий) – Anthony | ||
|---|---|---|---|
| Строка 4: | Строка 4: | ||
| Error as seen when restarting the service or looking into syslog: | Error as seen when restarting the service or looking into syslog: | ||
| - | < | + | |
| + | < | ||
| + | error Could not open logfile / | ||
| + | |||
| + | </ | ||
| 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: | ||
| - | < | + | |
| + | < | ||
| + | $ vim / | ||
| </ | </ | ||
| + | |||
| Add this line: | Add this line: | ||
| - | < | + | |
| + | < | ||
| # 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 / | ||
| / | / | ||
| - | </ | + | |
| + | </ | ||
| Reload apparmor config and restart unbound services: | Reload apparmor config and restart unbound services: | ||
| + | |||
| < | < | ||
| - | # apparmor_parser -r / | + | # apparmor_parser -r / |
| + | |||
| + | </ | ||
| + | < | ||
| + | service unbound restart | ||
| </ | </ | ||