mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 08:34:50 +00:00
eba8f94069
svn path=/nixos/trunk/; revision=17769
30 lines
498 B
Nix
30 lines
498 B
Nix
{ config, pkgs, ... }:
|
|
|
|
###### implementation
|
|
|
|
let
|
|
|
|
klogdCmd = "${pkgs.sysklogd}/sbin/klogd -c 1 -2 -k $(dirname $(readlink -f /var/run/booted-system/kernel))/System.map";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
jobs.klogd =
|
|
{ description = "Kernel log daemon";
|
|
|
|
startOn = "syslogd";
|
|
stopOn = "shutdown";
|
|
|
|
preStart =
|
|
''
|
|
# !!! this hangs for some reason (it blocks reading from
|
|
# /proc/kmsg).
|
|
#${klogdCmd} -o
|
|
'';
|
|
|
|
exec = "${klogdCmd} -n";
|
|
};
|
|
|
|
}
|