Unverified Commit 78324291 authored by Will Fancher's avatar Will Fancher Committed by GitHub
Browse files

nixos/systemd: CPUAccounting is deprecated (#454999)

parents 353000dd 27323e52
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -362,7 +362,6 @@ in
        '';
        serviceConfig = {
          Slice = "kubernetes.slice";
          CPUAccounting = true;
          MemoryAccounting = true;
          Restart = "on-failure";
          RestartSec = "1000ms";
+0 −2
Original line number Diff line number Diff line
@@ -173,7 +173,6 @@ in
          ProtectKernelLogs = true;
          ProtectControlGroups = true;
          MemoryAccounting = true;
          CPUAccounting = true;

          ExecStart = "${pkgs.prefect}/bin/prefect server start --host ${cfg.host} --port ${toString cfg.port}";
          Restart = "always";
@@ -216,7 +215,6 @@ in
          ProtectKernelLogs = true;
          ProtectControlGroups = true;
          MemoryAccounting = true;
          CPUAccounting = true;
          ExecStart = ''
            ${pkgs.prefect}/bin/prefect worker start \
              --pool ${poolName} \
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ in
    systemd.user.extraConfig = mkOption {
      default = "";
      type = types.lines;
      example = "DefaultCPUAccounting=yes";
      example = "DefaultTimeoutStartSec=60";
      description = ''
        Extra config options for systemd user instances. See {manpage}`systemd-user.conf(5)` for
        available options.
+0 −1
Original line number Diff line number Diff line
@@ -370,7 +370,6 @@ in
        Type = "simple";
        Restart = "always";
        Slice = "azure.slice";
        CPUAccounting = true;
        MemoryAccounting = true;
      };
    };