diff options
author | Robin Gloster <mail@glob.in> | 2016-01-06 06:50:18 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-01-07 06:39:06 +0000 |
commit | 88292fdf09960e9cb8e3c063a6b95ac4284222ec (patch) | |
tree | 34ff267ed7bacf9fd906b1736476b431e9afe909 /nixos/modules/services/logging | |
parent | af50b03f50d88954e98018c7c18c0581928b7165 (diff) | |
download | nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.gz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.bz2 nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.lz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.xz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.zst nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.zip |
jobs -> systemd.services
Diffstat (limited to 'nixos/modules/services/logging')
-rw-r--r-- | nixos/modules/services/logging/klogd.nix | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/nixos/modules/services/logging/klogd.nix b/nixos/modules/services/logging/klogd.nix index f69e08152b55..2d1f515da920 100644 --- a/nixos/modules/services/logging/klogd.nix +++ b/nixos/modules/services/logging/klogd.nix @@ -24,21 +24,14 @@ with lib; ###### implementation config = mkIf config.services.klogd.enable { - - jobs.klogd = - { description = "Kernel Log Daemon"; - - wantedBy = [ "multi-user.target" ]; - - path = [ pkgs.sysklogd ]; - - unitConfig.ConditionVirtualization = "!systemd-nspawn"; - - exec = - "klogd -c 1 -2 -n " + - "-k $(dirname $(readlink -f /run/booted-system/kernel))/System.map"; - }; - + systemd.services.klogd = { + description = "Kernel Log Daemon"; + wantedBy = [ "multi-user.target" ]; + path = [ pkgs.sysklogd ]; + unitConfig.ConditionVirtualization = "!systemd-nspawn"; + script = + "klogd -c 1 -2 -n " + + "-k $(dirname $(readlink -f /run/booted-system/kernel))/System.map"; + }; }; - } |