send kernel logs to s6
This commit is contained in:
1 parent
4a0120487c
commit
e35a1514ab
2 files changed
+16
No files matched your search
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs.liminix.services) longrun;
|
||||
in {
|
||||
config.services.klogd = longrun {
|
||||
name = "klogd";
|
||||
run = ''
|
||||
echo "1 2 1 8" > /proc/sys/kernel/printk
|
||||
cat /proc/kmsg
|
||||
'';
|
||||
finish = ''
|
||||
echo "8 4 1 8" > /proc/sys/kernel/printk
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user