joystream-node.service.j2 650 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=Joystream Node
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. User={{ ADMIN_USER }}
  7. WorkingDirectory=/home/{{ ADMIN_USER }}/joystream-node
  8. ExecStart=/home/{{ ADMIN_USER }}/joystream-node/joystream-node \
  9. --chain joy-testnet-4.json \
  10. --pruning archive \
  11. --validator \
  12. --name "515-l1dev JoystreamStats" \
  13. --rpc-cors all \
  14. #--rpc-cors https://joystreamstats.live,https://testnet.joystream.org,https://pioneer.joystreamstats.live,https://{{ inventory_hostname }}.joystreamstats.live
  15. -d /home/{{ ADMIN_USER }}
  16. Restart=on-failure
  17. RestartSec=3
  18. LimitNOFILE=8192
  19. [Install]
  20. WantedBy=multi-user.target