mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +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 ../system/unix-odbc-drivers.nix)
|
||||||
|
|
||||||
|
(import ../upstart-jobs/klogd.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# security
|
# security
|
||||||
(import ../system/sudo.nix)
|
(import ../system/sudo.nix)
|
||||||
|
@ -71,12 +71,6 @@ let
|
|||||||
jobs = map makeJob
|
jobs = map makeJob
|
||||||
([
|
([
|
||||||
|
|
||||||
# Klogd.
|
|
||||||
(import ../upstart-jobs/klogd.nix {
|
|
||||||
inherit (pkgs) sysklogd writeText;
|
|
||||||
inherit config;
|
|
||||||
})
|
|
||||||
|
|
||||||
# Makes LVM logical volumes available.
|
# Makes LVM logical volumes available.
|
||||||
(import ../upstart-jobs/lvm.nix {
|
(import ../upstart-jobs/lvm.nix {
|
||||||
inherit modprobe;
|
inherit modprobe;
|
||||||
|
@ -1,12 +1,17 @@
|
|||||||
{sysklogd, writeText, config}:
|
{pkgs, config, ...}:
|
||||||
|
|
||||||
|
###### implementation
|
||||||
let
|
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
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
services = {
|
||||||
|
extraJobs = [{
|
||||||
name = "klogd";
|
name = "klogd";
|
||||||
|
|
||||||
job = ''
|
job = ''
|
||||||
@ -23,4 +28,6 @@ in
|
|||||||
|
|
||||||
respawn ${klogdCmd} -n
|
respawn ${klogdCmd} -n
|
||||||
'';
|
'';
|
||||||
|
}];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user