Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
unbound:when-unbound-wont-write-logs [2019/10/28 11:12] Anthonyunbound: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:
-<code> error Could not open logfile /var/log/unbound/unbound.log: Permission denied </code>+ 
 +<code> 
 +error Could not open logfile /var/log/unbound/unbound.log: Permission denied 
 + 
 +</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:
-<code> $ vim /etc/apparmor.d/local/usr.sbin.unbound + 
 +<code> 
 +$ vim /etc/apparmor.d/local/usr.sbin.unbound 
 </code> </code>
 +
 Add this line: Add this line:
-<code> + 
 +<code>
 # Site-specific additions and overrides for usr.sbin.unbound. # Site-specific additions and overrides for usr.sbin.unbound.
 # For more details, please see /etc/apparmor.d/local/README. # For more details, please see /etc/apparmor.d/local/README.
  
 /var/log/unbound/unbound.log rw, /var/log/unbound/unbound.log rw,
-</code> + 
 +</code> 
 Reload apparmor config and restart unbound services: Reload apparmor config and restart unbound services:
 +
 <code> <code>
- # apparmor_parser -r /etc/apparmor.d/usr.sbin.unbound service unbound restart+# apparmor_parser -r /etc/apparmor.d/usr.sbin.unbound 
 + 
 +</code> 
 +<code> 
 +service unbound restart 
 </code> </code>
  
  
unbound/when-unbound-wont-write-logs.1572261165.txt.gz · Последнее изменение: Anthony
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0