From adf438d0fd0892bc0a0af00e3858a2a734cc1cd3 Mon Sep 17 00:00:00 2001 From: wowario Date: Mon, 5 Jul 2021 11:02:54 +0300 Subject: [PATCH] update systemd service file --- utils/systemd/wownerod.service | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/utils/systemd/wownerod.service b/utils/systemd/wownerod.service index 26fd36443..d1488e0a6 100644 --- a/utils/systemd/wownerod.service +++ b/utils/systemd/wownerod.service @@ -1,38 +1,17 @@ [Unit] Description=Wownero Full Node -After=network.target +After=network-online.target +Wants=network-online.target [Service] User=wownero Group=wownero -WorkingDirectory=~ -RuntimeDirectory=wownero +Environment="MONERO_RANDOMX_UMASK=1" StateDirectory=wownero LogsDirectory=wownero - -# Clearnet config -# -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 - +Type=simple +ExecStart=/usr/local/bin/wownerod --config-file /etc/wownerod.conf --non-interactive Restart=always [Install] -WantedBy=multi-user.target +WantedBy=multi-user.target \ No newline at end of file