xmr-btc-swap/docs/setup/asb/systemd/pull-and-build-asb.service

18 lines
549 B
SYSTEMD
Raw Normal View History

2021-02-22 04:21:52 -05:00
[Unit]
Description=Pull and build ASB from source
Wants=pull-and-build-asb.timer
[Service]
Type=oneshot
WorkingDirectory=/var/external/asb/xmr-btc-swap
ExecStartPre=git pull
ExecStart=/home/asb/.cargo/bin/cargo build --release --bin asb
ExecStopPost=/bin/sh -c 'if [ "$$EXIT_STATUS" -ne 0 ]; then /usr/local/bin/systemd-email.sh daniel@coblox.tech %n; fi'
StandardOutput=append:/var/external/asb/run/logs/pull-and-build.log
StandardError=append:/var/external/asb/run/logs/pull-and-build.log
2021-02-22 04:21:52 -05:00
User=asb
Group=asb
[Install]
WantedBy=multi-user.target