From 1dcfa7a803fe22448b96b96fc31887a8105ddd27 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 25 Jul 2026 12:44:06 +0200 Subject: [PATCH] Add readiness probe to devenv --- devenv.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devenv.nix b/devenv.nix index f0a462d..a054a81 100644 --- a/devenv.nix +++ b/devenv.nix @@ -74,6 +74,12 @@ in --mountpoint /tmp/rust-fuse \ --database "postgresql://fujin@localhost/musicfs?host=$PGHOST" ''; + # Probes the standard gRPC Health Checking Protocol exposed on the + # musicfs-client status server (default --listen 127.0.0.1:50052). + # SERVING implies the FUSE mount succeeded and, for NetworkOrigin, the + # upstream musicfs-server is reachable (health.rs toggles not_serving on + # upstream loss). Inherited by profiles.* since they only override `exec`. + ready.exec = "grpcurl -plaintext -max-time 2 127.0.0.1:50052 grpc.health.v1.Health/Check | grep -q SERVING"; }; profiles.local.module = {