Loading
nixos/influxdb2: wait until service is ready
Factor out part of the provisioning script into a wait-until-service-is-ready script, and put it unconditionally in front of ExecStartPost=, so that services that depend on influxdb2 are not started until influxdb2 responds to requests. Fixes https://github.com/NixOS/nixpkgs/issues/317017 ("Scrutiny tries to start before influxdb has started")