From fb6bc55bf0c9a5900606692d8435776fa699f836 Mon Sep 17 00:00:00 2001 From: Kaz <114888381+Mantodkaz@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:47:02 +0700 Subject: [PATCH 1/3] Update mainnet.md --- docs/nodes/mainnet.md | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/docs/nodes/mainnet.md b/docs/nodes/mainnet.md index 6c47260..5fdc3c2 100644 --- a/docs/nodes/mainnet.md +++ b/docs/nodes/mainnet.md @@ -117,14 +117,22 @@ Create `/etc/systemd/system/pipe.service`: ```ini [Unit] Description=Pipe Network POP Node -After=network-online.target -Wants=network-online.target +After=network.target +Wants=network.target [Service] +Type=simple WorkingDirectory=/opt/pipe -ExecStart=/bin/bash -c 'source /opt/pipe/.env && /opt/pipe/pop' -Restart=always -RestartSec=5 +EnvironmentFile=/opt/pipe/.env +ExecStart=/opt/pipe/pop +Restart=on-failure +RestartSec=3 + +TimeoutStartSec=5min +TimeoutStopSec=15s +KillSignal=SIGINT +KillMode=process + StandardOutput=journal StandardError=journal LimitNOFILE=65535 @@ -139,11 +147,15 @@ sudo systemctl daemon-reload sudo systemctl enable pipe sudo systemctl start pipe -sudo journalctl -u pipe -f ``` > 💡 **Tip:** Systemd ensures auto-restart on crash and starts automatically at boot. +Logs + +```bash +journalctl -u pipe -f +``` --- @@ -174,17 +186,17 @@ cd /opt/pipe ./pop earnings ``` -Prometheus metrics: +### **Optional: Prometheus Metrics** -```bash -curl http://localhost:9090/metrics -``` - -Logs ( If use Systemd Service): +The node exposes an optional Prometheus-compatible endpoint on **port 9090**. ```bash -journalctl -u pipe -f +curl http://localhost:9090/metrics ``` +> 💡 **Note:** +> This endpoint is **optional** and **not required** for your node to operate. +> It is intended only for **local monitoring** or integration with observability tools such as **Prometheus**, **Grafana**, or **Telegraf**. +> --- From e33a9e269a397c88e6cf103d4962a0f7fdd7e92c Mon Sep 17 00:00:00 2001 From: Kaz <114888381+Mantodkaz@users.noreply.github.com> Date: Fri, 10 Oct 2025 01:29:30 +0700 Subject: [PATCH 2/3] Update mainnet.md --- docs/nodes/mainnet.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/nodes/mainnet.md b/docs/nodes/mainnet.md index 0741136..8c141f7 100644 --- a/docs/nodes/mainnet.md +++ b/docs/nodes/mainnet.md @@ -117,22 +117,15 @@ Create `/etc/systemd/system/pipe.service`: ```ini [Unit] Description=Pipe Network POP Node -After=network.target -Wants=network.target +After=network-online.target +Wants=network-online.target [Service] -Type=simple WorkingDirectory=/opt/pipe EnvironmentFile=/opt/pipe/.env ExecStart=/opt/pipe/pop -Restart=on-failure +Restart=always RestartSec=3 - -TimeoutStartSec=5min -TimeoutStopSec=15s -KillSignal=SIGINT -KillMode=process - StandardOutput=journal StandardError=journal LimitNOFILE=65535 From cffad75853f5b553dd142ad58eb3a57e2811d7f0 Mon Sep 17 00:00:00 2001 From: Kaz <114888381+Mantodkaz@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:39:05 +0700 Subject: [PATCH 3/3] Rename HTTP_PORT to NODE_LISTEN_PORT --- docs/nodes/mainnet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/nodes/mainnet.md b/docs/nodes/mainnet.md index 8c141f7..c3a2176 100644 --- a/docs/nodes/mainnet.md +++ b/docs/nodes/mainnet.md @@ -60,7 +60,7 @@ DISK_CACHE_SIZE_GB=100 DISK_CACHE_PATH=./cache # Network ports -HTTP_PORT=80 +NODE_LISTEN_PORT=80 HTTPS_PORT=443 # Home network auto port forwarding (disable on VPS/servers)