Skip to content

Instantly share code, notes, and snippets.

@MSeven
Last active February 12, 2018 01:25
Show Gist options
  • Save MSeven/63de2c9cdabcd0e59c8e to your computer and use it in GitHub Desktop.
Save MSeven/63de2c9cdabcd0e59c8e to your computer and use it in GitHub Desktop.
[Unit]
Description=Geth Ethereum node
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/default/geth
ExecStart=/usr/bin/geth $GETH_ENABLE_RPC $GETH_CACHE $GETH_MAXPEERS
User=ethereumuser
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
GETH_ENABLE_RPC="--rpc"
GETH_CACHE="--cache 1024"
GETH_MAXPEERS="--maxpeers 25"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment