Skip to content

Instantly share code, notes, and snippets.

@shigahi
Last active January 28, 2018 15:54
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 shigahi/e2a0eb5845dec1727dd886f4fcdda1e1 to your computer and use it in GitHub Desktop.
Save shigahi/e2a0eb5845dec1727dd886f4fcdda1e1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Parity Daemon
After=network.target
[Service]
# run as root, set base_path in config.toml
ExecStart=/usr/bin/parity --config /home/ubuntu/.local/share/io.parity.ethereum/config.toml --pruning fast --rpccorsdomain http://127.0.0.1:5001
# To run as user, comment out above and uncomment below, fill in user and group
# picks up users default config.toml in $HOME/.local/share/io.parity.ethereum/
# User=username
# Group=groupname
# ExecStart=/usr/bin/parity
Restart=on-failure
# Specifies which signal to use when killing a service. Defaults to SIGTERM.
# SIGHUP gives parity time to exit cleanly before SIGKILL (default 90s)
KillSignal=SIGHUP
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment