---
title: Setup System Service
slug: v00/setup-system-service
description: Learn how to create a systemctl config file for the Xandeum Validator with this step-by-step guide. Follow the instructions to run commands as the root user, create the necessary file, and make any required changes. Once the code is pasted into the editor
docTags: 
createdAt: 2023-08-19T21:17:46.187Z
---

:::hint{type="warning"}
Run as `root` user, use `sudo -i`
:::

Create your systemctl config file

:::CodeblockTabs
nano

```linux
sudo nano /etc/systemd/system/xand.service
```

vim

```linux
sudo vim /etc/systemd/system/xand.service
```
:::

Paste into editor, make any changes to ledger dir or $PATH if you have deviated from the guide. Save and exit.

:::CodeblockTabs
CLI

```linux
[Unit]
Description=Xandeum Validator
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=xand
LimitNOFILE=1000000
LogRateLimitIntervalSec=0
Environment="PATH=/bin:/usr/bin:/home/xand/.local/share/solana/install/releases/active_release/bin"
ExecStart=/home/xand/validator-start.sh

[Install]
WantedBy=multi-user.target
```
:::

:::hint{type="warning"}
Note: You will start the validator using Option 2 on the Starting your validator section later on in the guide.
:::



Continue on to [Setup LogRotate](docId\:xX2q-TkbOUD9PhaXBuEFd)
