您可以将验证人作为 systemd 进程运行，以便服务器重新启动或當意外时自动重启(并有助于避免被惩罚!)。
Before following this guide you should have already set up your validator by following the How to validate article.
[Unit] Description=Polkadot Validator [Service] ExecStart=PATH_TO_POLKADOT_BIN --validator --name SHOW_ON_TELEMETRY Restart=always RestartSec=120 [Install] WantedBy=multi-user.target
WARNING: It's recommended to delay the restart of a node with
RestartSecin the case of node crashes. It's possible that when a node crashes, consensus votes in GRANDPA aren't persisted to disk. In this case, there is potential to equivocate when immediately restarting. What can happen is the node will not recognize votes that didn't make it to disk, and will then cast conflicting votes. Delaying the restart will allow the network to progress past potentially conflicting votes, at which point other nodes will not accept them.
systemctl enable polkadot-validator.service
systemctl start polkadot-validator.service
systemctl status polkadot-validator.service
journalctl -f -u polkadot-validator