Update service creation to put the name of the failed service more
directly
This commit is contained in:
parent
8e93efe945
commit
1872b9dd60
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue