mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* In the VM tests, add "-m 0" to syslogd to kill the "-- MARK --"
messages. These prevent hanging tests from being killed after 1 hour of silence. svn path=/nixos/trunk/; revision=28393
This commit is contained in:
parent
843ccae5d5
commit
8b30a8f23f
@ -27,8 +27,6 @@ let
|
|||||||
*.*;mail.none;local1.none -/var/log/messages
|
*.*;mail.none;local1.none -/var/log/messages
|
||||||
'';
|
'';
|
||||||
|
|
||||||
syslogdParameters = if cfg.enableNetworkInput then "-r " else "";
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -75,6 +73,15 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraParams = mkOption {
|
||||||
|
type = types.listOf types.string;
|
||||||
|
default = [ ];
|
||||||
|
example = [ "-m 0" ];
|
||||||
|
description = ''
|
||||||
|
Additional parameters passed to <command>syslogd</command>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -84,6 +91,8 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
services.syslogd.extraParams = optional cfg.enableNetworkInput "-r";
|
||||||
|
|
||||||
jobs.syslogd =
|
jobs.syslogd =
|
||||||
{ description = "Syslog daemon";
|
{ description = "Syslog daemon";
|
||||||
|
|
||||||
@ -93,7 +102,7 @@ in
|
|||||||
|
|
||||||
daemonType = "fork";
|
daemonType = "fork";
|
||||||
|
|
||||||
exec = "${pkgs.sysklogd}/sbin/syslogd ${syslogdParameters} -f ${syslogConf}";
|
exec = "${pkgs.sysklogd}/sbin/syslogd ${toString cfg.extraParams} -f ${syslogConf}";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -92,6 +92,10 @@ in
|
|||||||
# Send all of /var/log/messages to the serial port.
|
# Send all of /var/log/messages to the serial port.
|
||||||
services.syslogd.extraConfig = "*.* /dev/ttyS0";
|
services.syslogd.extraConfig = "*.* /dev/ttyS0";
|
||||||
|
|
||||||
|
# Disable "-- MARK --" messages. These prevent hanging tests from
|
||||||
|
# being killed after 1 hour of silence.
|
||||||
|
services.syslogd.extraParams = [ "-m 0" ];
|
||||||
|
|
||||||
# Don't run klogd. Kernel messages appear on the serial console anyway.
|
# Don't run klogd. Kernel messages appear on the serial console anyway.
|
||||||
jobs.klogd.startOn = mkOverride 50 "";
|
jobs.klogd.startOn = mkOverride 50 "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user