> For the complete documentation index, see [llms.txt](https://docs.qie.digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qie.digital/how-to-become-a-validator-on-qie-v3/start-your-node-with-systemd-service.md).

# ▶️Start Your Node With Systemd Service

## ⚙️ Create Systemd Service

### Step 1: Create Service File

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

***

### Step 2: Paste Service Configuration

#### 🔐 Recommended Secure Version

```ini
[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

```bash
sudo systemctl daemon-reload
```

***

## ▶️ Start the Node

```bash
sudo systemctl start qied
```

Check status:

```bash
sudo systemctl status qied
```

***

## 🔁 Enable Auto Start on Boot

```bash
sudo systemctl enable qied
```

Now the node will start automatically after server reboot.

***

## 📜 View Logs

#### Live Logs

```bash
sudo journalctl -u qied -f
```

#### Previous Logs

```bash
sudo journalctl -u qied --no-pager
```

***

## 🛑 Stop / Restart Node

#### Stop

```bash
sudo systemctl stop qied
```

#### Restart

```bash
sudo systemctl restart qied
```

***

## 🧠 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     |
