nixos/smokeping: Use requiredBy instead of wantedBy.

This makes switch-configuration fail if something is wrong with it,
which is desired especially for NixOps deployments.
This commit is contained in:
Niklas Hambüchen 2019-01-11 01:52:28 +01:00 committed by Kerstin
parent 123171b557
commit bb2a6ec751

View File

@ -313,7 +313,7 @@ in
};
users.groups.${cfg.user} = {};
systemd.services.smokeping = {
wantedBy = [ "multi-user.target"];
requiredBy = [ "multi-user.target"];
serviceConfig = {
User = cfg.user;
Restart = "on-failure";
@ -330,7 +330,7 @@ in
'';
};
systemd.services.thttpd = mkIf cfg.webService {
wantedBy = [ "multi-user.target"];
requiredBy = [ "multi-user.target"];
requires = [ "smokeping.service"];
path = with pkgs; [ bash rrdtool smokeping thttpd ];
serviceConfig = {