Send SIGTERM instead of SIGHUP to OE daemon (#317)

* Send SIGTERM instead of SIGHUP to OE daemon

* Address comments
This commit is contained in:
Simon KP 2021-03-12 23:00:09 +11:00 committed by GitHub
parent a0f406e26b
commit 48e7d6cee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ ExecStart=/usr/bin/openethereum --config /etc/openethereum/config.toml
Restart=on-failure
# Specifies which signal to use when killing a service. Defaults to SIGTERM.
# SIGHUP gives openethereum time to exit cleanly before SIGKILL (default 90s)
KillSignal=SIGHUP
# SIGTERM gives openethereum time to exit cleanly before sending SIGKILL
KillSignal=SIGTERM
TimeoutStopSec=300
[Install]
WantedBy=default.target