Validator Home
Setup System Service
3min
Run as root user, use sudo -i
Create your systemctl config file
nano
vim
1sudo nano /etc/systemd/system/validator.service
Paste into editor, make any changes to ledger dir or $PATH if you have deviated from the guide. Save and exit.
CLI
1[Unit]
2Description=Agave Validator
3After=network.target
4StartLimitIntervalSec=0
5
6[Service]
7Type=simple
8Restart=always
9RestartSec=5
10User=sol
11LimitNOFILE=2000000
12LogRateLimitIntervalSec=0
13Environment="PATH=/bin:/usr/bin:/home/sol/.local/share/xandeum/install/releases/active_release"
14ExecStart=/home/sol/validator-start.sh
15
16[Install]
17WantedBy=multi-user.target
CLI
1sudo systemctl daemon-reload
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
Updated 28 Dec 2024

Did this page help you?