Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Created January 30, 2023 15:23
Show Gist options
  • Save SEJeff/570da1424fef9158cf39eaae2d4dc551 to your computer and use it in GitHub Desktop.
Save SEJeff/570da1424fef9158cf39eaae2d4dc551 to your computer and use it in GitHub Desktop.
Ethereum systemd service for wormhole client node.
# /etc/systemd/system/geth.service
# Ansible managed
[Unit]
Description=geth node
After=network.target
[Service]
User=geth
Group=geth
ExecStart=/opt/bin/geth \
--cache 8192 \
--metrics \
--pprof \
--pprof.addr '[::]' \
--syncmode snap \
--datadir "/data/geth/data" \
--http \
--http.addr '[::]' \
--http.api eth,web3,txpool,net \
--http.vhosts=* \
--authrpc.addr '[::]' \
--authrpc.port '8551' \
--authrpc.jwtsecret '/data/geth/data/jwt.hex' \
--authrpc.vhosts=* \
--ws \
--ws.addr '[::]' \
--ws.api eth,web3,txpool,net
LimitNOFILE=1024000
Restart=always
RestartSec=10s
TimeoutStopSec=6000s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment