Skip to content

Commit

Permalink
Fix server termination
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetr0v committed May 21, 2020
1 parent 0c2a3b0 commit 8ccefc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/aggregator/scripts/run_server
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source "${GLOBAL_SCRIPTS_DIR}/common"
"${GLOBAL_SCRIPTS_DIR}/build_example" -e aggregator

readonly APPLICATION="${PWD}/bazel-client-bin/examples/aggregator/config/config.bin"
cargo run --release --target=x86_64-unknown-linux-musl --package=oak_loader -- \
exec cargo run --release --target=x86_64-unknown-linux-musl --package=oak_loader -- \
--application="${APPLICATION}" \
--grpc-tls-private-key="${GLOBAL_SCRIPTS_DIR}/../examples/certs/local/local.key" \
--grpc-tls-certificate="${GLOBAL_SCRIPTS_DIR}/../examples/certs/local/local.pem" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_server
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fi
# Launching the server requires a `--application=<dir>/config.bin` flag.
# `exec` is necessary for the `run_example` script to be able to get a PID of a background server.
if [[ "${server}" == "rust" ]]; then
cargo run --release --target=x86_64-unknown-linux-musl --package=oak_loader -- \
exec cargo run --release --target=x86_64-unknown-linux-musl --package=oak_loader -- \
--application="${APPLICATION}" \
--grpc-tls-private-key="${SCRIPTS_DIR}/../examples/certs/local/local.key" \
--grpc-tls-certificate="${SCRIPTS_DIR}/../examples/certs/local/local.pem" \
Expand Down

0 comments on commit 8ccefc6

Please sign in to comment.