mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
Convert "klogd"
svn path=/nixos/branches/fix-style/; revision=14398
This commit is contained in:
parent
dd0f98fe22
commit
bfc722e83d
@ -414,6 +414,9 @@ in
|
||||
|
||||
(import ../system/unix-odbc-drivers.nix)
|
||||
|
||||
(import ../upstart-jobs/klogd.nix)
|
||||
|
||||
|
||||
|
||||
# security
|
||||
(import ../system/sudo.nix)
|
||||
|
@ -71,12 +71,6 @@ let
|
||||
jobs = map makeJob
|
||||
([
|
||||
|
||||
# Klogd.
|
||||
(import ../upstart-jobs/klogd.nix {
|
||||
inherit (pkgs) sysklogd writeText;
|
||||
inherit config;
|
||||
})
|
||||
|
||||
# Makes LVM logical volumes available.
|
||||
(import ../upstart-jobs/lvm.nix {
|
||||
inherit modprobe;
|
||||
|
@ -1,12 +1,17 @@
|
||||
{sysklogd, writeText, config}:
|
||||
{pkgs, config, ...}:
|
||||
|
||||
###### implementation
|
||||
let
|
||||
inherit (pkgs.lib);
|
||||
|
||||
klogdCmd = "${sysklogd}/sbin/klogd -c 1 -2 -k $(dirname $(readlink -f /var/run/booted-system/kernel))/System.map";
|
||||
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 = ''
|
||||
@ -23,4 +28,6 @@ in
|
||||
|
||||
respawn ${klogdCmd} -n
|
||||
'';
|
||||
}];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user