forked from ryo-currency/ryo-currency
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ryod.service
36 lines (31 loc) · 947 Bytes
/
ryod.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[Unit]
Description=Ryo Full Node
After=network.target
[Service]
User=ryo
Group=ryo
WorkingDirectory=~
RuntimeDirectory=ryo
# Clearnet config
#
Type=forking
PIDFile=/run/ryo/ryod.pid
ExecStart=/usr/bin/ryod --config-file /etc/ryod.conf \
--detach --pidfile /run/ryo/ryod.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
## ryod 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/ryod --config-file /etc/ryod.conf \
# --non-interactive
Restart=always
[Install]
WantedBy=multi-user.target