mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-14 02:14:26 -05:00
fbbae0eebd
start-asb.service should not start up if start-monero-wallet-rpc.service failed on startup. This dependency is better expressed with Requires than with After because Requires will not start the unit upon failure of the required one.
17 lines
514 B
Desktop File
17 lines
514 B
Desktop File
[Unit]
|
|
Description=Run the automated swap backend
|
|
Requires=start-monero-wallet-rpc.service
|
|
OnFailure=unit-status-email@%n.service
|
|
|
|
[Service]
|
|
WorkingDirectory=/var/external/asb/xmr-btc-swap
|
|
ExecStart=/home/asb/.cargo/bin/cargo run --release --bin asb -- --config /var/external/asb/run/asb-config/config.toml start
|
|
StandardOutput=append:/var/external/asb/run/logs/start-asb.log
|
|
StandardError=append:/var/external/asb/run/logs/start-asb.log
|
|
Restart=on-failure
|
|
User=asb
|
|
Group=asb
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|