mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
nixos/logrotate: allow hourly frequency
Also adjust the timer to run with the hourly keyword.
This commit is contained in:
parent
651d7cdc19
commit
27b571067e
@ -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}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user