diff --git a/docs/setup/asb/systemd/pull-and-build-asb.service b/docs/setup/asb/systemd/pull-and-build-asb.service index 86ba605a..861daf77 100644 --- a/docs/setup/asb/systemd/pull-and-build-asb.service +++ b/docs/setup/asb/systemd/pull-and-build-asb.service @@ -1,6 +1,5 @@ [Unit] Description=Pull and build ASB from source -After=start-asb.service Wants=pull-and-build-asb.timer [Service] @@ -8,9 +7,9 @@ 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 +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 User=asb Group=asb diff --git a/docs/setup/asb/systemd/start-asb.service b/docs/setup/asb/systemd/start-asb.service index e43c3396..349ee86d 100644 --- a/docs/setup/asb/systemd/start-asb.service +++ b/docs/setup/asb/systemd/start-asb.service @@ -6,8 +6,8 @@ After=start-monero-wallet-rpc.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 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 -StandardError=append:/var/external/asb/run/logs/log_stderr.log +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