liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

watchdog.nix (282B)


      1 {
      2   liminix,
      3   lib,
      4   s6,
      5 }:
      6 { watched, headStart }:
      7 let
      8   inherit (liminix.services) longrun;
      9 in
     10 longrun {
     11   name = "watchdog";
     12   run = "PATH=${s6}/bin:$PATH HEADSTART=${toString headStart} ${./gaspode.sh} ${
     13     lib.concatStringsSep " " (builtins.map (s: s.name) watched)
     14   }";
     15 }