mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Updated systemd (markdown)
parent
e114be355f
commit
e80cb66afd
1 changed files with 9 additions and 7 deletions
16
systemd.md
16
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
|
||||
|
|
Loading…
Add table
Reference in a new issue