Skip to content

Commit

Permalink
Add start command on the run nix
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Aug 2, 2024
1 parent 2a12152 commit 53e1509
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions run/common/nix/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -euo pipefail
usage() {
echo "Usage: $0 [sync]"
echo " sync: Sync the service and wait for it to be ready"
echo " start: Start node and wallet services"
}
# Check if no arguments are provided and display usage if true
if [ $# -eq 0 ]; then
Expand Down Expand Up @@ -46,6 +47,8 @@ if [[ -n "${CLEANUP_DB-}" ]]; then
rm -rf "${NODE_DB:?}"/*
fi

NETWORK=${NETWORK:=testnet}

# Define and export the node socket name
NODE_SOCKET_NAME=node.socket

Expand Down Expand Up @@ -159,6 +162,13 @@ case "$1" in
exit 1
fi
;;
start)
echo "Wallet service port: $WALLET_PORT"
echo "Node socket path: $NODE_SOCKET_PATH"
echo "Wallet pid: $WALLET_ID"
echo "Node pid: $NODE_ID"
trap - ERR INT EXIT
;;
*)
echo "Error: Invalid option $1"
usage
Expand Down

0 comments on commit 53e1509

Please sign in to comment.