Updated systemd (markdown)

szemley 2021-01-09 15:07:13 +00:00
parent 3d5524d2cf
commit 13dae48291

@ -169,35 +169,41 @@ Anyway, disabling systemd socket activation is relative simple, not to say trivi
Here are commands used to achieve above goal. (Please note that this method has been verified and tested. Furthermore, **mousepad** — a simple text editor was used, but it completely depends on Users preferences - just use your favorite editor).
```toml
```sh
# Stop and disable socket units (it seems,
# that using `masking` option is not needed).
# -------------------------------------------
sudo systemctl stop dnscrypt-proxy.socket
sudo systemctl disable dnscrypt-proxy.socket
# Edit and comment out all systemd socket options
# (e.g. `Also=dnscrypt-proxy.socket`) found in both files.
# --------------------------------------------------------
sudo mousepad /lib/systemd/system/dnscrypt-proxy.service
sudo mousepad /lib/systemd/system/dnscrypt-proxy-resolvconf.service
# Reload the systemd configuration manager to make
# the new changes available (this command should be
# used every time user modify the service file).
# -------------------------------------------------
sudo systemctl daemon-reload
# Edit configuration file and add an IP address to
# the `listen_address` option, e.g. '127.0.0.1:53'
# (however, it depends on User configuration).
# ------------------------------------------------
sudo mousepad /etc/dnscrypt-proxy/dnscrypt-proxy.toml
# Restart DNSCrypt-Proxy service (of course, it's
# one of the most important command here).
# -----------------------------------------------
sudo systemctl restart dnscrypt-proxy.service
# Check if everything is okay (there shouldn't be any
# `WARNING` or `FATAL` messages and information about
# wiring systemd TCP/UDP sockets should be replaced with
# "Now listening on TCP/UDP" etc.).
# wiring systemd TCP/UDP sockets should be replaced
# with "Now listening on TCP/UDP" etc.).
# ---------------------------------------------------
journalctl -u dnscrypt-proxy.service
systemctl status dnscrypt-proxy.service
```