Skip to content

Commit 01aab17

Browse files
committed
nixos/tests/prometheus-exporters/varnish: make state directory explicit
1 parent acdf3fc commit 01aab17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/tests/prometheus-exporters.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ let
16101610
varnish = {
16111611
exporterConfig = {
16121612
enable = true;
1613-
instance = "/var/spool/varnish/varnish";
1613+
instance = "/run/varnish/varnish";
16141614
group = "varnish";
16151615
};
16161616
metricProvider = {
@@ -1619,6 +1619,7 @@ let
16191619
];
16201620
services.varnish = {
16211621
enable = true;
1622+
stateDir = "/run/varnish/varnish";
16221623
config = ''
16231624
vcl 4.0;
16241625
backend default {

0 commit comments

Comments
 (0)