▶️Start Your Node With Systemd Service

⚙️ Create Systemd Service

Step 1: Create Service File

sudo nano /etc/systemd/system/qied.service

Step 2: Paste Service Configuration

[Unit]
Description=QIE Daemon (qied)
After=network-online.target
Wants=network-online.target

[Service]
User=root
Group=root
Environment=HOME=/root
WorkingDirectory=/root

ExecStart=/usr/bin/qied start --home /root/.qieMainnetNode

Restart=on-failure
RestartSec=5
StartLimitIntervalSec=600
StartLimitBurst=10

OOMScoreAdjust=-1000

Environment=GOMEMLIMIT=6GiB
Environment=GOGC=100

LimitNOFILE=65536
LimitNPROC=4096

StandardOutput=journal
StandardError=journal

TimeoutStartSec=120
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

Save and exit.

🔄 Reload Systemd


▶️ Start the Node

Check status:


🔁 Enable Auto Start on Boot

Now the node will start automatically after server reboot.


📜 View Logs

Live Logs

Previous Logs


🛑 Stop / Restart Node

Stop

Restart


🧠 Service Configuration Explanation

Parameter
Purpose

ExecStart

Runs the QIE daemon

Restart=on-failure

Auto-restarts if node crashes

GOMEMLIMIT=6GiB

Limits Go memory usage

GOGC=100

Controls garbage collection

LimitNOFILE=65536

Supports high P2P connections

OOMScoreAdjust

Protects from Linux OOM killer

TimeoutStartSec

Startup timeout protection

Last updated