hosts/astatine: Update mu5001tool and restart on failure
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -411,11 +411,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757364612,
|
"lastModified": 1757584432,
|
||||||
"narHash": "sha256-6MSqlWHH15qbWbvS9b6OTGdtIkW6GVb9SSLkEYAMdDw=",
|
"narHash": "sha256-zCCJKJDaX4w7izqMym+Z2qkcYr8aUo2d/Sgmn7jVQMA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "cb758d9bc97baa11e80a048e666c99986cabed43",
|
"rev": "5888a1309e5a3fe73ea6801f5c37fac87c796694",
|
||||||
"revCount": 6,
|
"revCount": 7,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.clerie.de/clerie/mu5001tool.git"
|
"url": "https://git.clerie.de/clerie/mu5001tool.git"
|
||||||
},
|
},
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
LoadCredential = "zte-hypermobile-5g-password:${config.sops.secrets."zte-hypermobile-5g-password".path}";
|
LoadCredential = "zte-hypermobile-5g-password:${config.sops.secrets."zte-hypermobile-5g-password".path}";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "15s";
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
${lib.getExe pkgs.mu5001tool} --password-file ''${CREDENTIALS_DIRECTORY}/zte-hypermobile-5g-password prometheus-exporter --listen-port 9242
|
${lib.getExe pkgs.mu5001tool} --password-file ''${CREDENTIALS_DIRECTORY}/zte-hypermobile-5g-password prometheus-exporter --listen-port 9242
|
||||||
|
Reference in New Issue
Block a user