mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-13 00:58:50 +00:00
Merge pull request #57 from DeBrosOfficial/nightly
Fix: Use config file instead of data directory in systemd service
This commit is contained in:
commit
f8c81ff3a1
@ -8,6 +8,14 @@ The format is based on [Keep a Changelog][keepachangelog] and adheres to [Semant
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
## [0.51.9] - 2025-10-25
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
- One-command `make dev` target to start full development stack (bootstrap + node2 + node3 + gateway in background)
|
- One-command `make dev` target to start full development stack (bootstrap + node2 + node3 + gateway in background)
|
||||||
- New `network-cli config init` (no --type) generates complete development stack with all configs and identities
|
- New `network-cli config init` (no --type) generates complete development stack with all configs and identities
|
||||||
- Full stack initialization with auto-generated peer identities for bootstrap and all nodes
|
- Full stack initialization with auto-generated peer identities for bootstrap and all nodes
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ test-e2e:
|
|||||||
|
|
||||||
.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports
|
.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports
|
||||||
|
|
||||||
VERSION := 0.51.7-beta
|
VERSION := 0.51.9-beta
|
||||||
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
||||||
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||||
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'
|
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'
|
||||||
|
|||||||
@ -389,9 +389,10 @@ create_systemd_services() {
|
|||||||
sudo systemctl disable debros-node.service 2>/dev/null || true
|
sudo systemctl disable debros-node.service 2>/dev/null || true
|
||||||
sudo rm -f "$node_service_file"
|
sudo rm -f "$node_service_file"
|
||||||
fi
|
fi
|
||||||
|
sudo systemctl daemon-reload
|
||||||
log "Creating debros-node.service..."
|
log "Creating new systemd service..."
|
||||||
cat > /tmp/debros-node.service << 'EOF'
|
local exec_start="$INSTALL_DIR/bin/node --config $INSTALL_DIR/configs/node.yaml"
|
||||||
|
cat > /tmp/debros-node.service << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=DeBros Network Node (Bootstrap)
|
Description=DeBros Network Node (Bootstrap)
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user