Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. [Unit] Description=Monero Full Node
  2. After=network.target
  3. [Service]
  4. User=root
  5. Group=root
  6. WorkingDirectory=/home/monero
  7. RuntimeDirectory=monero
  8. # Clearnet config
  9. #
  10. Type=forking
  11. PIDFile=/run/monero/monerod.pid
  12. ExecStart=/home/monero/monerod --data-dir /home/monero/ -restricted-rpc -block-sync-size 3 -confirm-external-bind -config-file /home/moenro/monerod.conf –detach –pidfile /run/monero/monerod.pid
  13.  
  14. # Tor config
  15. #
  16. ## We have to use simple, not forking, because we cannot pass –detach
  17. ## because stderr/stdout is not available when detached, but torsocks
  18. ## attempts to write to it, and fails with ‘invalid argument’, causing
  19. ## monerod to fail.
  20. #Type=simple
  21. #Environment=DNS_PUBLIC=tcp
  22. ## The following is needed only when accessing wallet from a different
  23. ## host in the LAN, VPN, etc, the RPC must bind to 0.0.0.0, but
  24. ## by default torsocks only allows binding to localhost.
  25. #Environment=TORSOCKS_ALLOW_INBOUND=1
  26. #ExecStart=/usr/bin/torsocks /usr/bin/monerod –config-file /etc/monerod.conf \
  27. # –non-interactive
  28.  
  29. Restart=always
  30.  
  31. [Install] WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement