From bf184c17e0e10019d497d9cc6334a19bfc3ebbf7 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Fri, 29 Mar 2019 09:44:30 +0000 Subject: [PATCH] fix making banlist importer wait for bitcoind to start up --- modules/bitcoind.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 696776c..6eee9ed 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -237,12 +237,13 @@ in { PermissionsStartOnly = "true"; }; }; - systemd.services.bitcoind-add-banlist = { - description = "Bitcoin daemon banlist adder"; + systemd.services.bitcoind-import-banlist = { + description = "Bitcoin daemon banlist importer"; requires = [ "bitcoind.service" ]; after = [ "bitcoind.service" ]; wantedBy = [ "multi-user.target" ]; preStart = '' + set +e echo "Checking that bitcoind is up" # Give bitcoind time to create pid file sleep 2