Skip to content

Instantly share code, notes, and snippets.

@kwunyeung
Created August 24, 2019 22:12
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 kwunyeung/df7a0f5e08e61a8461460c26fbdc530b to your computer and use it in GitHub Desktop.
Save kwunyeung/df7a0f5e08e61a8461460c26fbdc530b to your computer and use it in GitHub Desktop.
systemd unit file for polkadot
[Unit]
Description=Polkadot Node
After=network-online.target
[Service]
User={user running polkadot}
ExecStart={path to polkadot bin}/polkadot --chain alex --validator --name {validator name} --key {validator key}
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment