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