* 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
|
*.crit /var/log/warn
|
||||||
|
|
||||||
*.*;mail.none;local1.none -/var/log/messages
|
*.*;mail.none;local1.none -/var/log/messages
|
||||||
|
|
||||||
|
${config.services.syslogd.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -38,6 +40,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
example = "news.* -/var/log/news";
|
||||||
|
description = ''
|
||||||
|
Additional text appended to <filename>syslog.conf</filename>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -75,6 +75,11 @@ in
|
|||||||
# `xwininfo' is used by the test driver to query open windows.
|
# `xwininfo' is used by the test driver to query open windows.
|
||||||
environment.systemPackages = [ pkgs.xorg.xwininfo ];
|
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…
x
Reference in New Issue
Block a user