mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
guix: Add early health check for guix-daemon
This commit is contained in:
parent
c1ae726a13
commit
1742f8e12d
1 changed files with 27 additions and 0 deletions
|
@ -130,6 +130,33 @@ for host in $HOSTS; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
################
|
||||||
|
# Check that we can connect to the guix-daemon
|
||||||
|
################
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
Checking that we can connect to the guix-daemon...
|
||||||
|
|
||||||
|
Hint: If this hangs, you may want to try turning your guix-daemon off and on
|
||||||
|
again.
|
||||||
|
|
||||||
|
EOF
|
||||||
|
if ! guix gc --list-failures > /dev/null; then
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
ERR: Failed to connect to the guix-daemon, please ensure that one is running and
|
||||||
|
reachable.
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Developer note: we could use `guix repl` for this check and run:
|
||||||
|
#
|
||||||
|
# (import (guix store)) (close-connection (open-connection))
|
||||||
|
#
|
||||||
|
# However, the internal API is likely to change more than the CLI invocation
|
||||||
|
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# SETUP #
|
# SETUP #
|
||||||
#########
|
#########
|
||||||
|
|
Loading…
Add table
Reference in a new issue