nixpkgs deprecated lib.getExe on packages without a mainprogram

This commit is contained in:
Rouven Seifert 2023-08-03 13:30:40 +02:00
parent 816f6fc3bd
commit 741ebd293d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
14 changed files with 34 additions and 33 deletions

View file

@ -23,8 +23,8 @@
description = "Crowdsec agent";
serviceConfig = {
Type = "notify";
ExecStartPre = "${lib.getExe pkgs.crowdsec} -t -error";
ExecStart = "${lib.getExe pkgs.crowdsec}";
ExecStartPre = "${pkgs.crowdsec}/bin/crowdsec -t -error";
ExecStart = "${pkgs.crowdsec}/bin/crowdsec";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Restart = "always";
RestartSec = 60;