aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-08 17:34:48 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-08 17:34:48 +0200
commitd9392b724cae53b7a16fa5f84ebe152eea496502 (patch)
tree4f8a343317b7b79a650559e75c9ea4a5ef7544b1 /contrib
parent9158d6f34153dc937e109d0e7486e956a26f20aa (diff)
script: Improve robustness of bitcoind.service on startup
Diffstat (limited to 'contrib')
-rw-r--r--contrib/init/bitcoind.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/init/bitcoind.service b/contrib/init/bitcoind.service
index 8b308644b1..ef2e23efe6 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 \