xmr-btc-swap/docs/setup/asb/systemd/start-asb.service
Daniel Karzel fbbae0eebd Switch from After to Required
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.
2021-02-24 12:14:34 +11:00

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