A naive user may run into trouble when using the provided systemd service file. By default, systemd will kill a process if it hasn't stopped after 90 seconds, which may be to short during Initial Block Download. This PR adds a suggestion to increase the timeout during IBD.
doc: suggest using timeoutstopsec in systemd file during IBD #15268
pull d3spwn wants to merge 3 commits into bitcoin:master from d3spwn:systemd-tweaks changing 2 files +4 −0-
d3spwn commented at 11:06 AM on January 26, 2019: none
-
Add TimeoutStopSec for IBD 4c1eebcb67
-
Add note about TimeoutStopSec during IBD e62454165b
- fanquake added the label Docs on Jan 26, 2019
-
promag commented at 12:28 PM on January 27, 2019: member
You mean that during IBD it doesn't quit with SIGINT within 90sec?
-
d3spwn commented at 2:09 PM on January 27, 2019: none
You mean that during IBD it doesn't quit with SIGINT within 90sec?
Yes, it may not. Especially with slow hardware and/or large dbcache (which is often recommended for IBD).
-
Fix typo 596e449cd9
-
in doc/init.md:89 in e62454165b outdated
85 | @@ -86,6 +86,8 @@ To test, run `systemctl start bitcoind` and to enable for system startup run 86 | 87 | NOTE: When installing for systemd in Debian/Ubuntu the .service file needs to be copied to the /lib/systemd/system directory instead. 88 | 89 | +NOTE: Systemd can be very agressive in killing processes that don't stop in a reasonable amount of time. This can be a problem during Initial Block Download where it can take several minutes to flush cached data to disk. Therefore consider adding `TimeoutStopSec=infinity` to the file during IBD.
practicalswift commented at 10:06 PM on January 27, 2019:I don't mean to be aggressive but you're missing a "g" in "aggressive"111
d3spwn commented at 1:12 PM on January 31, 2019:Sorry. Fixed.
practicalswift commented at 8:12 PM on February 1, 2019: contributorPerhaps the default value should be changed?
What would be a reasonable default for
TimeoutStopSecthat can be expected to work also during IBD in the general case?DrahtBot commented at 1:57 PM on August 8, 2019: member<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #16569 (Increase init file stop timeout by setpill)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
DrahtBot commented at 10:56 AM on October 8, 2019: member<!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase
DrahtBot added the label Needs rebase on Oct 8, 2019GChuf commented at 11:27 AM on October 23, 2019: contributorMaybe the default timestopsec value should be changed in another PR? This could get merged for now.
fanquake added the label Up for grabs on Apr 12, 2020fanquake closed this on Apr 12, 2020DrahtBot locked this on Feb 15, 2022Contributors
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:14 UTC
More mirrored repositories can be found on mirror.b10c.me