Skip to content

Commit

Permalink
add no discover in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorwick committed Sep 7, 2023
1 parent a8f4400 commit cb1d711
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ endif
ifeq ($(RUN_BLAKE3),true)
BASE_CMD += --consensus.engine "blake3"
endif
ifeq ($(NO_DISCOVER),true)
BASE_CMD += --nodiscover
endif

# Build suburl strings for slice specific subclient groups
# WARNING: Only connect to dom/sub clients over a trusted network.
Expand Down Expand Up @@ -116,9 +119,16 @@ run-slice:
ifeq (,$(wildcard nodelogs))
mkdir nodelogs
endif
$(PRIME_CMD) >> $(PRIME_LOG_FILE) 2>&1 &
$(REGION_CMD) >> $(REGION_LOG_FILE) 2>&1 &
$(ZONE_CMD) >> $(ZONE_LOG_FILE) 2>&1 &
ifeq ($(filter $(REGION),0 1 2),)
$(error REGION must be 0, 1, or 2)
endif

ifeq ($(filter $(ZONE),0 1 2),)
$(error ZONE must be 0, 1, or 2)
endif
@nohup $(PRIME_CMD) >> $(PRIME_LOG_FILE) 2>&1 &
@nohup $(REGION_CMD) >> $(REGION_LOG_FILE) 2>&1 &
@nohup $(ZONE_CMD) >> $(ZONE_LOG_FILE) 2>&1 &

run-all:
ifeq (,$(wildcard nodelogs))
Expand Down
1 change: 1 addition & 0 deletions network.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ VERBOSITY=4

# Syncmode variable
SYNCMODE=full
NO_DISCOVER=false

# Stats information
QUAI_STATS=false
Expand Down

0 comments on commit cb1d711

Please sign in to comment.