2016-08-25 05:05:30 +02:00
|
|
|
[Unit]
|
2016-09-03 21:44:00 +02:00
|
|
|
Description=Monero Full Node
|
2016-08-25 05:05:30 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2016-09-03 21:44:00 +02:00
|
|
|
User=monero
|
|
|
|
Group=monero
|
2016-08-25 05:05:30 +02:00
|
|
|
WorkingDirectory=~
|
2017-09-09 19:11:21 +02:00
|
|
|
RuntimeDirectory=monero
|
2020-05-06 13:00:59 +02:00
|
|
|
StateDirectory=monero
|
|
|
|
LogsDirectory=monero
|
2016-08-25 05:05:30 +02:00
|
|
|
|
2018-03-10 17:32:55 +01:00
|
|
|
# Clearnet config
|
|
|
|
#
|
2016-08-25 05:05:30 +02:00
|
|
|
Type=forking
|
2017-09-09 19:11:21 +02:00
|
|
|
PIDFile=/run/monero/monerod.pid
|
2017-07-19 22:47:57 +02:00
|
|
|
ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \
|
2017-09-09 19:11:21 +02:00
|
|
|
--detach --pidfile /run/monero/monerod.pid
|
2016-08-25 05:05:30 +02:00
|
|
|
|
2018-03-10 17:32:55 +01:00
|
|
|
# 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
|
|
|
|
|
2017-11-16 19:58:18 +01:00
|
|
|
Restart=always
|
|
|
|
|
2016-08-25 05:05:30 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|