-
Notifications
You must be signed in to change notification settings - Fork 56
/
masarid.service
36 lines (31 loc) · 986 Bytes
/
masarid.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=Masari Full Node
After=network.target
[Service]
User=masari
Group=masari
WorkingDirectory=~
RuntimeDirectory=masari
# Clearnet config
#
Type=forking
PIDFile=/run/masari/masarid.pid
ExecStart=/usr/bin/masarid --config-file /etc/masarid.conf \
--detach --pidfile /run/masari/masarid.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
## masarid 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/masarid --config-file /etc/masarid.conf \
# --non-interactive
Restart=always
[Install]
WantedBy=multi-user.target