Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| Následující verze | Předchozí verze | ||
| systemd [2017/05/29 19:51] – vytvořeno rmarko | systemd [2019/04/19 17:55] (aktuální) – [Knot DNS] wwcovh | ||
|---|---|---|---|
| Řádek 26: | Řádek 26: | ||
| systemctl start systemd-journald | systemctl start systemd-journald | ||
| </ | </ | ||
| + | |||
| + | ===== Knot DNS ===== | ||
| + | |||
| + | With systemd and OpenVZ, [[https:// | ||
| + | < | ||
| + | ... systemd[22357]: | ||
| + | -- Subject: Process / | ||
| + | -- Defined-By: systemd | ||
| + | -- Support: https:// | ||
| + | -- | ||
| + | -- The process / | ||
| + | -- | ||
| + | -- The error number returned by this process is 22. | ||
| + | ... systemd[1]: knot.service: | ||
| + | ... systemd[1]: Failed to start Knot DNS server. | ||
| + | </ | ||
| + | |||
| + | The reason is that Knot DNS systemd unit specifies a few required capabilities which vpsFree does not support under OpenVZ, namely: | ||
| + | |||
| + | < | ||
| + | # cat / | ||
| + | |||
| + | [...] | ||
| + | CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP | ||
| + | AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP | ||
| + | [...] | ||
| + | </ | ||
| + | |||
| + | For explanation of what these capabilities mean visit [[http:// | ||
| + | |||
| + | The first step is either commenting these out or even better, [[https:// | ||
| + | |||
| + | < | ||
| + | systemctl edit knot.service | ||
| + | |||
| + | [Service] | ||
| + | CapabilityBoundingSet=~ | ||
| + | AmbientCapabilities= | ||
| + | </ | ||
| + | (note the '' | ||
| + | |||
| + | and reload with '' | ||
| + | |||
| + | Now Knot DNS starts but fails to bind to port '' | ||
| + | |||
| + | So first we override once more and add '' | ||
| + | |||
| + | < | ||
| + | systemctl edit knot.service | ||
| + | |||
| + | [Service] | ||
| + | User= | ||
| + | Group= | ||
| + | CapabilityBoundingSet=~ | ||
| + | AmbientCapabilities= | ||
| + | </ | ||
| + | |||
| + | Then we edit the Knot DNS configuration itself and specify user and group '' | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | |||
| + | server: | ||
| + | [...] | ||
| + | user: knot:knot | ||
| + | |||
| + | [...] | ||
| + | </ | ||
| + | |||
| + | Reload once again with '' | ||