Skip to content

Instantly share code, notes, and snippets.

@EdwardPrentice
Last active October 10, 2021 20:54
Show Gist options
  • Save EdwardPrentice/bbf9367e9d79f57a31f1daf2ca11b4f5 to your computer and use it in GitHub Desktop.
Save EdwardPrentice/bbf9367e9d79f57a31f1daf2ca11b4f5 to your computer and use it in GitHub Desktop.
Teku Service file
# For Ubuntu 20.04 install to /etc/systemd/system/teku.service
[Unit]
Description = eth2 teku service
Wants = network-online.target
After = network-online.target
[Service]
User = root
Environment ="JAVA_OPTS=-Xmx6g -XshowSettings:vm"
ExecStart = /usr/bin/teku -c /etc/teku/config.yml
Restart = on-failure
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment