Update service creation to put the name of the failed service more

directly
This commit is contained in:
Thomas Avé 2024-06-13 10:35:39 +00:00
parent 8e93efe945
commit 1872b9dd60
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ let
};
mkService = name: cfg: {
Unit.Description = name;
Unit.OnFailure = "status_notify@%n.service";
Install = { WantedBy = [ "default.target" ]; };
Unit.OnFailure = "status_notify@${name}.service";
# Install = { WantedBy = [ "default.target" ]; };
Service = { ExecStart = cfg.script; };
};
in