forked from mirrors/nixpkgs
nixos/redis: log to syslog by default
This commit is contained in:
parent
b20c08d2cb
commit
d28a9619a1
|
@ -14,6 +14,7 @@ let
|
|||
${condOption "unixsocket" cfg.unixSocket}
|
||||
loglevel ${cfg.logLevel}
|
||||
logfile ${cfg.logfile}
|
||||
syslog-enabled ${redisBool cfg.syslog}
|
||||
databases ${toString cfg.databases}
|
||||
${concatMapStrings (d: "save ${toString (builtins.elemAt d 0)} ${toString (builtins.elemAt d 1)}\n") cfg.save}
|
||||
dbfilename ${cfg.dbFilename}
|
||||
|
@ -82,12 +83,18 @@ in
|
|||
};
|
||||
|
||||
logfile = mkOption {
|
||||
default = "stdout";
|
||||
default = "/dev/null";
|
||||
description = "Specify the log file name. Also 'stdout' can be used to force Redis to log on the standard output.";
|
||||
example = "/var/log/redis.log";
|
||||
type = with types; string;
|
||||
};
|
||||
|
||||
syslog = mkOption {
|
||||
default = true;
|
||||
description = "Enable logging to the system logger.";
|
||||
type = with types; bool;
|
||||
};
|
||||
|
||||
databases = mkOption {
|
||||
default = 16;
|
||||
description = "Set the number of databases.";
|
||||
|
|
Loading…
Reference in a new issue