From e80cb66afdcf4fa46351b4b4f50d93a6e2c92b8e Mon Sep 17 00:00:00 2001 From: szemley <67058631+szemley@users.noreply.github.com> Date: Thu, 31 Dec 2020 14:03:43 +0000 Subject: [PATCH] Updated systemd (markdown) --- systemd.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/systemd.md b/systemd.md index e1c1dc4..b19f5dc 100644 --- a/systemd.md +++ b/systemd.md @@ -163,11 +163,11 @@ sudo systemctl enable dnscrypt-proxy.service ### Disable systemd socket activation -In order to use DNSCrypt-Proxy without systemd socket activation, firstly User should consider various pros and cons. For example, main Developer - Mr Frank Denis suggests to not using systemd socket at all. On the other hand, some Users express their own opinions, suggesting that systemd socket activaction is a better choice (for more informations, please check **1.** - these are various threads, that concern systemd and socket activation etc.) +In order to use DNSCrypt-Proxy but without systemd socket activation, User should consider various pros and cons. For example, main Developer - Mr Frank Denis suggests not using systemd socket at all. On the other hand, some Users express their own opinions, suggesting that systemd socket activaction is a better choice (for more informations, please check **1.** - these are various threads, that concern systemd and socket activation etc.) Anyway, disabling systemd socket activation is relative simple, not to say trivial. In short, everything is about stop and disable `dnscrypt-proxy.socket` unit, comment or remove options - related with systemd sockets - found in `dnscrypt-proxy.service` file (and eventually `dnscrypt-proxy-resolvconf.service`; see above examples [in:] **Usage with systemd**). The next step is to add a correct IP address to the `listen_addresses` option found in `dnscrypt-proxy.toml` configuration file. Finally, restart DNSCrypt-Proxy and then check service status. -Here is an example of commands used to achieve above goal. (Please note that this description is based on the experience with Linux distribution shipped with systemd. Furthermore, **mousepad** — a simple text editor was used, but it completely depends on Users preferences - just use your favorite editor). +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). ``` # Stop and disable socket unit @@ -176,13 +176,15 @@ Here is an example of commands used to achieve above goal. (Please note that thi sudo systemctl stop dnscrypt-proxy.socket sudo systemctl disable dnscrypt-proxy.socket -# Comment all systemd sockets options* found in both -# files and reload the systemd configuration manager -# to make sure systemd has read any changes -# (*e.g. `Also=dnscrypt-proxy.socket`) -# --------------------------------------------------- +# Comment all systemd sockets options found in +# both files (e.g. `Also=dnscrypt-proxy.socket`) +# ----------------------------------------------- sudo mousepad /lib/systemd/system/dnscrypt-proxy.service sudo mousepad /lib/systemd/system/dnscrypt-proxy-resolvconf.service + +# Reload the systemd configuration manager +# to make sure systemd has read any changes +# ------------------------------------------ sudo systemctl daemon-reload # Edit configuration file and add an IP address to