about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2021-11-29 07:42:14 -0500
committerGitHub <noreply@github.com>2021-11-29 07:42:14 -0500
commitf366af7a1b3891d9370091ab03150d3a6ee138fa (patch)
tree7725b63bb1efb1360b4c076dd91abe7e4b4b6080 /nixos/modules
parentb360176fa3d31fd1a64ac1f5c877050d1d7cc390 (diff)
parent27b571067e51450d14387671d20f52b7ec237b22 (diff)
downloadnixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar.gz
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar.bz2
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar.lz
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar.xz
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.tar.zst
nixlib-f366af7a1b3891d9370091ab03150d3a6ee138fa.zip
Merge pull request #136630 from mweinelt/logrotate-hourly
nixos/logrotate: allow hourly frequency
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/logging/logrotate.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/logging/logrotate.nix b/nixos/modules/services/logging/logrotate.nix
index 624b6cfb1215..ba5d6e29d0bd 100644
--- a/nixos/modules/services/logging/logrotate.nix
+++ b/nixos/modules/services/logging/logrotate.nix
@@ -40,7 +40,7 @@ let
       };
 
       frequency = mkOption {
-        type = types.enum [ "daily" "weekly" "monthly" "yearly" ];
+        type = types.enum [ "hourly" "daily" "weekly" "monthly" "yearly" ];
         default = "daily";
         description = ''
           How often to rotate the logs.
@@ -155,7 +155,7 @@ in
     systemd.services.logrotate = {
       description = "Logrotate Service";
       wantedBy = [ "multi-user.target" ];
-      startAt = "*-*-* *:05:00";
+      startAt = "hourly";
       script = ''
         exec ${pkgs.logrotate}/sbin/logrotate ${configFile}
       '';