mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
bfc722e83d
svn path=/nixos/branches/fix-style/; revision=14398
34 lines
592 B
Nix
34 lines
592 B
Nix
{pkgs, config, ...}:
|
|
|
|
###### implementation
|
|
let
|
|
inherit (pkgs.lib);
|
|
|
|
klogdCmd = "${pkgs.sysklogd}/sbin/klogd -c 1 -2 -k $(dirname $(readlink -f /var/run/booted-system/kernel))/System.map";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services = {
|
|
extraJobs = [{
|
|
name = "klogd";
|
|
|
|
job = ''
|
|
description "Kernel log daemon"
|
|
|
|
start on syslogd
|
|
stop on shutdown
|
|
|
|
start script
|
|
# !!! this hangs for some reason (it blocks reading from
|
|
# /proc/kmsg).
|
|
#${klogdCmd} -o
|
|
end script
|
|
|
|
respawn ${klogdCmd} -n
|
|
'';
|
|
}];
|
|
};
|
|
}
|