Skip to content

Instantly share code, notes, and snippets.

@veox
Created August 15, 2018 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veox/31f1ccec97d624634411dde11a2ffa10 to your computer and use it in GitHub Desktop.
Save veox/31f1ccec97d624634411dde11a2ffa10 to your computer and use it in GitHub Desktop.
ethereum trinity systemd service file
[Unit]
Description=trinity ethereum node
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/veox/src/py-evm
ExecStartPre=/home/veox/src/py-evm/.virtualenv/py-evm/bin/python /home/veox/src/py-evm/.virtualenv/py-evm/bin/trinity --network-id=3 fix-unclean-shutdown
ExecStart=/home/veox/src/py-evm/.virtualenv/py-evm/bin/python /home/veox/src/py-evm/.virtualenv/py-evm/bin/trinity --network-id=3 --sync-mode=full --log-level=info
TimeoutStopSec=30
Restart=on-failure
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment