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: {
|
mkService = name: cfg: {
|
||||||
Unit.Description = name;
|
Unit.Description = name;
|
||||||
Unit.OnFailure = "status_notify@%n.service";
|
Unit.OnFailure = "status_notify@${name}.service";
|
||||||
Install = { WantedBy = [ "default.target" ]; };
|
# Install = { WantedBy = [ "default.target" ]; };
|
||||||
Service = { ExecStart = cfg.script; };
|
Service = { ExecStart = cfg.script; };
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in New Issue