2023-01-29 21:39:34 +00:00
|
|
|
{
|
2025-02-10 21:55:08 +00:00
|
|
|
pseudofile,
|
|
|
|
}:
|
|
|
|
let
|
2023-01-29 21:39:34 +00:00
|
|
|
inherit (pseudofile) dir;
|
|
|
|
structure = {
|
|
|
|
service = dir {
|
|
|
|
s6-linux-init-runleveld = dir {
|
2025-02-10 21:55:08 +00:00
|
|
|
notification-fd = {
|
|
|
|
file = "3";
|
|
|
|
};
|
2023-01-29 21:39:34 +00:00
|
|
|
run = {
|
|
|
|
file = ''
|
2025-02-10 21:55:08 +00:00
|
|
|
hello
|
|
|
|
world
|
2023-01-29 21:39:34 +00:00
|
|
|
'';
|
|
|
|
mode = "0755";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
s6-linux-init-shutdownd = dir {
|
|
|
|
fifo = {
|
|
|
|
type = "i";
|
|
|
|
mode = "0600";
|
|
|
|
};
|
|
|
|
run = {
|
|
|
|
file = ''
|
2025-02-10 21:55:08 +00:00
|
|
|
s6-linux-init/bin/s6-linux-init-shutdownd -c "/etc/s6-linux-init/current" -g 3000
|
|
|
|
'';
|
2023-01-29 21:39:34 +00:00
|
|
|
mode = "0755";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
s6-svscan-log = dir {
|
|
|
|
fifo = {
|
|
|
|
type = "i";
|
|
|
|
mode = "0600";
|
|
|
|
};
|
2025-02-10 21:55:08 +00:00
|
|
|
notification-fd = {
|
|
|
|
file = "3";
|
|
|
|
};
|
2023-01-29 21:39:34 +00:00
|
|
|
run = {
|
|
|
|
file = ''
|
2025-02-10 21:55:08 +00:00
|
|
|
gdsgdfgsdgf
|
2023-01-29 21:39:34 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2025-02-10 21:55:08 +00:00
|
|
|
uncaught-logs = (dir { }) // {
|
|
|
|
mode = "2750";
|
|
|
|
};
|
2023-01-29 21:39:34 +00:00
|
|
|
};
|
2025-02-10 21:55:08 +00:00
|
|
|
in
|
|
|
|
pseudofile.write "pseudo.s6-init" structure
|