2023-09-02 18:28:40 +02:00
|
|
|
{
|
|
|
|
liminix
|
|
|
|
, lib
|
2024-04-17 14:01:10 +02:00
|
|
|
, s6
|
2023-09-02 18:28:40 +02:00
|
|
|
}:
|
|
|
|
{ watched, headStart } :
|
|
|
|
let
|
|
|
|
inherit (liminix.services) longrun;
|
|
|
|
in longrun {
|
|
|
|
name = "watchdog";
|
|
|
|
run =
|
2024-04-17 14:01:10 +02:00
|
|
|
"PATH=${s6}/bin:$PATH HEADSTART=${toString headStart} ${./gaspode.sh} ${lib.concatStringsSep " " (builtins.map (s: s.name) watched)}";
|
2023-09-02 18:28:40 +02:00
|
|
|
}
|