mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
fbd0eb7548
The unit-status-email@.service allows being triggered through multiple services with @. Note that everything after the @ is passed to the unit-status-email@.service as parameter. We pass the complete service name OnFailure using %n. The parameter can then be accessed by %i within the unit-status-email@.service. Hence, to pass the service name to our email script for processing we use %i within unit-status-email@.service. |
||
---|---|---|
.. | ||
systemd | ||
README.md |
Setting up the ASB
Setup guidelines for the automated swap backend.
systemd services
We configure two pathes for starting the asb through systemd.
Upon system startup we first start the monero wallet RPC and then start the asb using two services:
start-monero-wallet-rpc.service
|-> start-asb.service
We trigger re-building the asb from source every 24 hours through the pull-and-build-asb
timer and service.
The watcher-service watch-asb-binary-change.path
monitors the asb binary changing, and if changed triggers restart-asb.service
that will restart start-asb.service
:
pull-and-build-asb.timer
|-> pull-and-build-asb.service
|-> watch-asb-binary-change.path
|-> restart-asb.service
|-> start-asb.service