Updated systemd (markdown)

szemley 2021-01-09 14:21:01 +00:00
parent 662ba1845e
commit c5df337198

@ -170,40 +170,34 @@ 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
# Stop and disable socket unit (it seems,
# that using `masking` option is not needed)
# -------------------------------------------
# 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 sockets options
# (e.g. `Also=dnscrypt-proxy.socket`) found in both files
# --------------------------------------------------------
# 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)
# --------------------------------------------------
# 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)
# -------------------------------------------------
# (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)
# ------------------------------------------------
# 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.)
# --------------------------------------------------------
# "Now listening on TCP/UDP" etc.).
journalctl -u dnscrypt-proxy.service
systemctl status dnscrypt-proxy.service
```