mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-15 16:48:58 -05:00
Systemd service files and readme
This commit is contained in:
parent
61a8282be1
commit
0ebc9a79c7
7 changed files with 100 additions and 0 deletions
18
docs/setup/asb/systemd/pull-and-build-asb.service
Normal file
18
docs/setup/asb/systemd/pull-and-build-asb.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Pull and build ASB from source
|
||||
After=start-asb.service
|
||||
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=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/log_pull-build_stdout.log
|
||||
StandardError=append:/var/external/asb/run/logs/log_pull-build_stderr.log
|
||||
User=asb
|
||||
Group=asb
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue