From d9392b724cae53b7a16fa5f84ebe152eea496502 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:34:48 +0200 Subject: [PATCH 1/3] script: Improve robustness of bitcoind.service on startup --- contrib/init/bitcoind.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/init/bitcoind.service b/contrib/init/bitcoind.service index 8b308644b10..ef2e23efe6a 100644 --- a/contrib/init/bitcoind.service +++ b/contrib/init/bitcoind.service @@ -11,7 +11,10 @@ [Unit] Description=Bitcoin daemon -After=network.target + +# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ +After=network-online.target +Wants=network-online.target [Service] ExecStart=/usr/bin/bitcoind -daemon \ From 601778c3107adbd8d96eb0bb5c16a9d0a4b81594 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:44:24 +0200 Subject: [PATCH 2/3] script: Add Documentation key to bitcoind.service --- contrib/init/bitcoind.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/init/bitcoind.service b/contrib/init/bitcoind.service index ef2e23efe6a..5999928aa4f 100644 --- a/contrib/init/bitcoind.service +++ b/contrib/init/bitcoind.service @@ -11,6 +11,7 @@ [Unit] Description=Bitcoin daemon +Documentation=https://github.com/bitcoin/bitcoin/blob/master/doc/init.md # https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ After=network-online.target From 9d026546778629472574b26fa73338efc63d02da Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:53:10 +0200 Subject: [PATCH 3/3] doc: Fix systemd spelling and link to doc/init.md See https://www.freedesktop.org/wiki/Software/systemd/ --- contrib/init/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/init/README.md b/contrib/init/README.md index 306a37f75ab..affc7c2e750 100644 --- a/contrib/init/README.md +++ b/contrib/init/README.md @@ -1,6 +1,6 @@ Sample configuration files for: ``` -SystemD: bitcoind.service +systemd: bitcoind.service Upstart: bitcoind.conf OpenRC: bitcoind.openrc bitcoind.openrcconf @@ -9,4 +9,4 @@ macOS: org.bitcoin.bitcoind.plist ``` have been made available to assist packagers in creating node packages here. -See doc/init.md for more information. +See [doc/init.md](../../doc/init.md) for more information.