2016-08-24 21:05:30 -06:00
|
|
|
[Unit]
|
2018-12-02 07:29:51 -07:00
|
|
|
Description=Wownero Full Node
|
2016-08-24 21:05:30 -06:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2018-12-02 07:29:51 -07:00
|
|
|
User=wownero
|
|
|
|
Group=wownero
|
2016-08-24 21:05:30 -06:00
|
|
|
WorkingDirectory=~
|
2018-12-02 07:29:51 -07:00
|
|
|
RuntimeDirectory=wownero
|
2016-08-24 21:05:30 -06:00
|
|
|
|
2018-03-10 09:32:55 -07:00
|
|
|
# Clearnet config
|
|
|
|
#
|
2016-08-24 21:05:30 -06:00
|
|
|
Type=forking
|
2018-12-02 07:29:51 -07:00
|
|
|
PIDFile=/run/wownero/wownerod.pid
|
|
|
|
ExecStart=/usr/bin/wownerod --config-file /etc/wownerod.conf \
|
|
|
|
--detach --pidfile /run/wownero/wownerod.pid
|
2016-08-24 21:05:30 -06:00
|
|
|
|
2018-03-10 09:32:55 -07:00
|
|
|
# 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
|
2018-12-02 07:29:51 -07:00
|
|
|
## wownerod to fail.
|
2018-03-10 09:32:55 -07:00
|
|
|
#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
|
2018-12-02 07:29:51 -07:00
|
|
|
#ExecStart=/usr/bin/torsocks /usr/bin/wownerod --config-file /etc/wownerod.conf \
|
2018-03-10 09:32:55 -07:00
|
|
|
# --non-interactive
|
|
|
|
|
2017-11-16 11:58:18 -07:00
|
|
|
Restart=always
|
|
|
|
|
2016-08-24 21:05:30 -06:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|