Setup System Service
3 min
Run as root user, use sudo -i
Create your systemctl config file
sudo vim /etc/systemd/system/xand.servicePaste into editor, make any changes to ledger dir or $PATH if you have deviated from the guide. Save and exit.
NOTE: If migrating from old version...the Environment="PATH.... has changed!
Look Close
[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.targetNote: You will start the validator using Option 2 on the Starting your validator section later on in the guide.
Continue on to Setup LogRotate