Skip to content

Instantly share code, notes, and snippets.

@wschwab
Created November 4, 2019 13:37
Show Gist options
  • Save wschwab/0734000828dd668b0e8d0864d008b5c5 to your computer and use it in GitHub Desktop.
Save wschwab/0734000828dd668b0e8d0864d008b5c5 to your computer and use it in GitHub Desktop.
a sample script to create a service for running a geth node
[Unit]
Description=Geth Node
After=network.target auditd.service
Wants=network.target
[Service]
WorkingDirectory=/home/pi
ExecStart=/usr/local/bin/geth --syncmode fast --cache 256 --datadir /mnt/ssd/ethereum
User=pi
Group=pi
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
Alias=geth.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment