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