mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
update systemd service file
This commit is contained in:
parent
b5ad030b5b
commit
07e4356090
1 changed files with 6 additions and 27 deletions
|
@ -1,37 +1,16 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Wownero Full Node
|
Description=Wownero Full Node
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=wownero
|
User=wownero
|
||||||
Group=wownero
|
Group=wownero
|
||||||
WorkingDirectory=~
|
Environment="MONERO_RANDOMX_UMASK=1"
|
||||||
RuntimeDirectory=wownero
|
|
||||||
StateDirectory=wownero
|
StateDirectory=wownero
|
||||||
LogsDirectory=wownero
|
LogsDirectory=wownero
|
||||||
|
Type=simple
|
||||||
# Clearnet config
|
ExecStart=/usr/local/bin/wownerod --config-file /etc/wownerod.conf --non-interactive
|
||||||
#
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/run/wownero/wownerod.pid
|
|
||||||
ExecStart=/usr/bin/wownerod --config-file /etc/wownerod.conf \
|
|
||||||
--detach --pidfile /run/wownero/wownerod.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
|
|
||||||
## wownerod 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/wownerod --config-file /etc/wownerod.conf \
|
|
||||||
# --non-interactive
|
|
||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in a new issue