* In the NixOS tests, send syslog messages to the serial port (so that
they appear in the build log of the test). svn path=/nixos/trunk/; revision=20490
This commit is contained in:
parent
cfcb5a1544
commit
43d6b17d87
|
@ -19,6 +19,8 @@ let
|
|||
*.crit /var/log/warn
|
||||
|
||||
*.*;mail.none;local1.none -/var/log/messages
|
||||
|
||||
${config.services.syslogd.extraConfig}
|
||||
'';
|
||||
|
||||
in
|
||||
|
@ -37,6 +39,14 @@ in
|
|||
messages.
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
default = "";
|
||||
example = "news.* -/var/log/news";
|
||||
description = ''
|
||||
Additional text appended to <filename>syslog.conf</filename>.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -74,7 +74,12 @@ in
|
|||
|
||||
# `xwininfo' is used by the test driver to query open windows.
|
||||
environment.systemPackages = [ pkgs.xorg.xwininfo ];
|
||||
|
||||
|
||||
# Send all of /var/log/messages to the serial port (except for
|
||||
# kernel messages through klogd, which already appear on the
|
||||
# serial port).
|
||||
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user