Код
sudo su
cd /etc/systemd/system
touch joystream-node.service
nano joystream-node.service
[Unit]
Description=Joystream Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/home/joystream/
ExecStart=/home/joystream/joystream-node \
--chain joy-testnet-5.json \
--pruning archive \
--validator \
--name 2743-kansensus \
--log runtime,txpool,transaction-pool,trace=sync
Restart=on-failure
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
cd /etc/systemd/system
systemctl daemon-reload
systemctl start joystream-node
systemctl status joystream-node
journalctl -n 100 -f -u joystream-node
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933