mirror of
https://github.com/monero-project/monero.git
synced 2026-01-04 00:37:07 -08:00
systemd,readme: torsocks config for service
This commit is contained in:
@@ -8,12 +8,28 @@ Group=monero
|
||||
WorkingDirectory=~
|
||||
RuntimeDirectory=monero
|
||||
|
||||
# Clearnet config
|
||||
#
|
||||
Type=forking
|
||||
PIDFile=/run/monero/monerod.pid
|
||||
|
||||
ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \
|
||||
--detach --pidfile /run/monero/monerod.pid
|
||||
|
||||
# Tor config
|
||||
#
|
||||
## We have to use simple, not forking, because we cannot pass --detach
|
||||
## because stderr/stdout is not available when detached, but torsocks
|
||||
## attempts to write to it, and fails with 'invalid argument', causing
|
||||
## monerod to fail.
|
||||
#Type=simple
|
||||
#Environment=DNS_PUBLIC=tcp
|
||||
## The following is needed only when accessing wallet from a different
|
||||
## host in the LAN, VPN, etc, the RPC must bind to 0.0.0.0, but
|
||||
## by default torsocks only allows binding to localhost.
|
||||
#Environment=TORSOCKS_ALLOW_INBOUND=1
|
||||
#ExecStart=/usr/bin/torsocks /usr/bin/monerod --config-file /etc/monerod.conf \
|
||||
# --non-interactive
|
||||
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user