2021-02-22 04:21:52 -05:00
|
|
|
[Unit]
|
|
|
|
Description=monero-wallet-rpc for the automated swap backend (asb)
|
2021-03-09 01:20:58 -05:00
|
|
|
Requires=start-monerod.service
|
2021-02-23 20:12:38 -05:00
|
|
|
OnFailure=unit-status-email@%n.service
|
2021-02-22 04:21:52 -05:00
|
|
|
|
|
|
|
[Service]
|
2021-03-09 01:20:58 -05:00
|
|
|
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
|
2021-02-23 20:12:38 -05:00
|
|
|
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"
|
2021-02-22 04:21:52 -05:00
|
|
|
Restart=always
|
|
|
|
User=asb
|
|
|
|
Group=asb
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|