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.
main
Niklas Hambüchen 5 years ago committed by Kerstin
parent 123171b557
commit bb2a6ec751
  1. 4
      nixos/modules/services/networking/smokeping.nix

@ -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 = {

Loading…
Cancel
Save