xmr-btc-swap/docs/setup/asb
Daniel Karzel fbd0eb7548 Send emails OnFailure through dedicated service
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.
2021-02-24 12:12:38 +11:00
..
systemd Send emails OnFailure through dedicated service 2021-02-24 12:12:38 +11:00
README.md Systemd service files and readme 2021-02-22 22:42:12 +11:00

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