Created
November 4, 2019 13:37
-
-
Save wschwab/0734000828dd668b0e8d0864d008b5c5 to your computer and use it in GitHub Desktop.
a sample script to create a service for running a geth node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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