Setup System Service
Run as root user, use sudo -i
Create your systemctl config file
sudo nano /etc/systemd/system/validator.servicePaste into editor, make any changes to ledger dir or $PATH if you have deviated from the guide. Save and exit.
[Unit]
Description=Agave Validator
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
User=sol
LimitNOFILE=2000000
LogRateLimitIntervalSec=0
Environment="PATH=/bin:/usr/bin:/home/sol/.local/share/xandeum/install/releases/active_release"
ExecStart=/home/sol/validator-start.sh
[Install]
WantedBy=multi-user.targetsudo 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