Skip to content

Starknet pathfinder configuration to run as systemd service

License

Notifications You must be signed in to change notification settings

emilianobonassi/pathfinder-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Starknet pathfinder configuration to run as systemd service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published