collector: the pre script needs root
This commit is contained in:
parent
7f6312ad0c
commit
c8467650a0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue