---
title: Setup System Service
slug: run-a-validator/setup-system-service
description: Learn how to create a systemctl config file for running the powerful Xandeum Validator program effortlessly. This comprehensive document covers all the necessary specifications for executing the program, restart behavior, user privileges, and file limits.
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.

:::hint{type="warning"}
NOTE: If migrating from old version...the `Environment="PATH....` has changed!

Look Close
:::



:::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/xandeum/install/releases/active_release"
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\:V9FUS9Go39BE5qAL4EBZc)
