Skip to content

Instantly share code, notes, and snippets.

@amanelis
Created October 2, 2021 20:39
Show Gist options
  • Save amanelis/c890eb8d984d529ae93f29b3ef8b4aea to your computer and use it in GitHub Desktop.
Save amanelis/c890eb8d984d529ae93f29b3ef8b4aea to your computer and use it in GitHub Desktop.

Revisions

  1. amanelis created this gist Oct 2, 2021.
    17 changes: 17 additions & 0 deletions geth.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # /etc/systemd/system/geth.service

    [Unit]
    Description=Go Ethereum Client
    After=network.target
    Wants=network.target

    [Service]
    User=goeth`
    Group=goeth
    Type=simple
    Restart=always
    RestartSec=5
    ExecStart=/usr/bin/geth --nousb --gcmode=archive --syncmode "fast" --http --http.api "eth,net,personal,web3,txpool" --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain geth.bcrypt.us --http.vhosts * --datadir /mnt/nvm/ether --cache 28000 --maxpeers 200 --txpool.globalslots=250000 --txpool.globalqueue=50000

    [Install]
    WantedBy=default.target