Merge pull request #6598 from AntoniosHadji/systemd

Updated systemd files for linux (Resolves #6592)
This commit is contained in:
Robert Habermeier 2017-10-05 18:06:52 +02:00 committed by GitHub
commit 7dc281ff2f

View File

@ -3,8 +3,18 @@ Description=Parity Daemon
After=network.target After=network.target
[Service] [Service]
EnvironmentFile=-%h/.parity/parity.conf # run as root, set base_path in config.toml
ExecStart=/usr/bin/parity $ARGS ExecStart=/usr/bin/parity --config /etc/parity/config.toml
# 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] [Install]
WantedBy=default.target WantedBy=default.target