mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-21 21:01:15 -05:00
Combine stdout and stderr into one logfile
This commit is contained in:
parent
0ebc9a79c7
commit
85704d18f8
@ -1,6 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Pull and build ASB from source
|
Description=Pull and build ASB from source
|
||||||
After=start-asb.service
|
|
||||||
Wants=pull-and-build-asb.timer
|
Wants=pull-and-build-asb.timer
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@ -8,9 +7,9 @@ Type=oneshot
|
|||||||
WorkingDirectory=/var/external/asb/xmr-btc-swap
|
WorkingDirectory=/var/external/asb/xmr-btc-swap
|
||||||
ExecStartPre=git pull
|
ExecStartPre=git pull
|
||||||
ExecStart=/home/asb/.cargo/bin/cargo build --release --bin asb
|
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'
|
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
|
StandardOutput=append:/var/external/asb/run/logs/pull-and-build.log
|
||||||
StandardError=append:/var/external/asb/run/logs/log_pull-build_stderr.log
|
StandardError=append:/var/external/asb/run/logs/pull-and-build.log
|
||||||
User=asb
|
User=asb
|
||||||
Group=asb
|
Group=asb
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ After=start-monero-wallet-rpc.service
|
|||||||
WorkingDirectory=/var/external/asb/xmr-btc-swap
|
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
|
ExecStart=/home/asb/.cargo/bin/cargo run --release --bin asb -- --config /var/external/asb/run/asb-config/config.toml start
|
||||||
ExecStopPost=/bin/sh -c 'if [ "$$EXIT_STATUS" -ne 0 ]; then /usr/local/bin/systemd-email.sh daniel@coblox.tech %n; fi'
|
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_stdout.log
|
StandardOutput=append:/var/external/asb/run/logs/start-asb.log
|
||||||
StandardError=append:/var/external/asb/run/logs/log_stderr.log
|
StandardError=append:/var/external/asb/run/logs/start-asb.log
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=asb
|
User=asb
|
||||||
Group=asb
|
Group=asb
|
||||||
|
Loading…
Reference in New Issue
Block a user