Starknet pathfinder configuration to run as systemd service
- Docker
- Ubuntu or Debian-like distribution
- Create user who will execute the client and add to the docker group
useradd -s /bin/false starknode
usermod -a -G docker starknode
- Create directory to store node data. You could also mount an external disk.
mkdir /mnt/starkdata
chown starknode.starknode /mnt/starkdata
- Replace
INFURAKEY
instarknode.service
with yours. If you don't have, create a free one. - 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
- Start the node and enjoy
service starknode start
To monitor run
journalctl -u starknode -f
Just open a PR