Skip to content

Commit

Permalink
nixos/smokeping: Use requiredBy instead of wantedBy.
Browse files Browse the repository at this point in the history
This makes switch-configuration fail if something is wrong with it,
which is desired especially for NixOps deployments.
  • Loading branch information
nh2 committed Nov 1, 2021
1 parent 3f944a2 commit 992b9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/smokeping.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 = {
Expand Down

0 comments on commit 992b9a0

Please sign in to comment.