From c8467650a090d78546932dd14468fb6e773388fd Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Tue, 25 Jan 2022 20:50:20 +0100 Subject: [PATCH] collector: the pre script needs root --- collector.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector.nix b/collector.nix index 86c09cb..73e7bd4 100644 --- a/collector.nix +++ b/collector.nix @@ -31,7 +31,7 @@ in PrivateTmp = true; RuntimeDirectory = "collector"; ExecStart = "${pkgs.ruby.withPackages (ps: with ps; [ json ])}/bin/ruby ${collector}/query-data.influx --config /run/collector/collector-config"; - ExecStartPre = "${pkgs.writeShellScript "collector-init" '' + ExecStartPre = "+${pkgs.writeShellScript "collector-init" '' until [ -s /var/lib/influxdb/knotendaten.pw ]; do sleep 1 done