more cleanup

This commit is contained in:
Daniel Karzel 2021-03-09 17:35:00 +11:00
parent 70a90241cc
commit cfb885c49e
2 changed files with 10 additions and 6 deletions

View File

@ -7,7 +7,7 @@ OnFailure=unit-status-email@%n.service
Type=simple
ExecStart=/var/external/asb/monero/bin/monero-wallet-rpc --stagenet --daemon-address 127.0.0.1:38081 --rpc-bind-port 38083 --disable-rpc-login --wallet-dir /var/external/asb/monero/data/stagenet/asb-wallets
ExecStartPost=/usr/bin/bash -c "i=1; while [ $i -ne 0 ]; do tail -n1 /var/external/asb/monero/bin/monero-wallet-rpc.log | grep 'Starting wallet RPC server'; i=$?; sleep 5; done"
Restart=always
Restart=on-failure
User=asb
Group=asb

View File

@ -1,15 +1,19 @@
[Unit]
Description=monerod for the automated swap backend (asb)
After=network.target
# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
After=network-online.target
Wants=network-online.target
OnFailure=unit-status-email@%n.service
[Service]
Type=simple
ExecStart=/var/external/asb/monero/bin/monerod --stagenet --data-dir /var/external/asb/monero/data/stagenet/monerod --non-interactive
# ExecStartPost=/usr/bin/bash -c "i=1; while [ $i -ne 0 ]; do cat /var/external/asb/monero/bin/monerod.log | grep 'core RPC server started ok'; i=$?; sleep 1; done"
# StandardOutput=append:/var/external/asb/monero/bin/monerod.log
# StandardError=append:/var/external/asb/monero/bin/monerod.log
Restart=always
Restart=on-failure
User=asb
Group=asb