2016-08-19 13:38:32 +02:00
|
|
|
[Unit]
|
2020-09-22 14:53:52 +02:00
|
|
|
Description=OpenEthereum Daemon
|
2017-03-19 08:52:00 +01:00
|
|
|
After=network.target
|
2016-08-19 13:38:32 +02:00
|
|
|
|
|
|
|
[Service]
|
2017-09-26 23:53:05 +02:00
|
|
|
# run as root, set base_path in config.toml
|
2020-09-22 14:53:52 +02:00
|
|
|
ExecStart=/usr/bin/openethereum --config /etc/openethereum/config.toml
|
2017-09-26 23:53:05 +02:00
|
|
|
# To run as user, comment out above and uncomment below, fill in user and group
|
2020-12-12 09:48:58 +01:00
|
|
|
# picks up users default config.toml in $HOME/.local/share/openethereum/
|
2017-09-26 23:53:05 +02:00
|
|
|
# User=username
|
|
|
|
# Group=groupname
|
2020-09-22 14:53:52 +02:00
|
|
|
# ExecStart=/usr/bin/openethereum
|
2017-09-26 23:53:05 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
# Specifies which signal to use when killing a service. Defaults to SIGTERM.
|
2021-03-12 13:00:09 +01:00
|
|
|
# SIGTERM gives openethereum time to exit cleanly before sending SIGKILL
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
TimeoutStopSec=300
|
2016-08-19 13:38:32 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|
|
|
|
|
|
|
|
|