mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-13 01:18:49 +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
|
||||
|
||||
### 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)
|
||||
- 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
|
||||
|
||||
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
|
||||
|
||||
VERSION := 0.51.7-beta
|
||||
VERSION := 0.51.9-beta
|
||||
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
||||
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
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 rm -f "$node_service_file"
|
||||
fi
|
||||
|
||||
log "Creating debros-node.service..."
|
||||
cat > /tmp/debros-node.service << 'EOF'
|
||||
sudo systemctl daemon-reload
|
||||
log "Creating new systemd service..."
|
||||
local exec_start="$INSTALL_DIR/bin/node --config $INSTALL_DIR/configs/node.yaml"
|
||||
cat > /tmp/debros-node.service << EOF
|
||||
[Unit]
|
||||
Description=DeBros Network Node (Bootstrap)
|
||||
After=network-online.target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user