/pathfinder-systemd

Starknet pathfinder configuration to run as systemd service

MIT LicenseMIT

pathfinder-systemd

Starknet pathfinder configuration to run as systemd service

Prerequisites

  • Docker
  • Ubuntu or Debian-like distribution

Install

  1. Create user who will execute the client and add to the docker group
useradd -s /bin/false starknode
usermod -a -G docker starknode
  1. Create directory to store node data. You could also mount an external disk.
mkdir /mnt/starkdata
chown starknode.starknode /mnt/starkdata
  1. Replace INFURAKEY in starknode.service with yours. If you don't have, create a free one.
  2. Copy starknode.service to /etc/systemd/system, reload system services and enable the service on restart
cp starknode.starknode /etc/systemd/system
systemctl daemon-reload
systemctl enable starknode
  1. Start the node and enjoy
service starknode start

To monitor run

journalctl -u starknode -f

Contributing

Just open a PR