Skip to content

Instantly share code, notes, and snippets.

@prestonvanloon
Created May 19, 2020 19:19
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestonvanloon/e0bb176bdb6963fde42fc71be3f64770 to your computer and use it in GitHub Desktop.
Save prestonvanloon/e0bb176bdb6963fde42fc71be3f64770 to your computer and use it in GitHub Desktop.
Prysm systemctl
[Unit]
Description=Prysm Beacon Chain
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=ubuntu
# optional, specify a specific version
#Environment=USE_PRYSM_VERSION=v1.0.0-alpha.7
ExecStart=/eth2/prysm.sh beacon-chain --datadir=/eth2 --dev
[Install]
WantedBy=multi-user.target
[Unit]
Description=Prysm Validator
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=120
User=ubuntu
# optional, specify a specific version
#Environment=USE_PRYSM_VERSION=v1.0.0-alpha.7
ExecStart=/eth2/prysm.sh validator --datadir=/eth2/validator --graffiti "changeme" --keystore-path=/eth2/keystore --password="changeme"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment