add watchdog service
This commit is contained in:
parent
6805e0090d
commit
83092b7b73
5 changed files with 66 additions and 40 deletions
12
modules/watchdog/watchdog.nix
Normal file
12
modules/watchdog/watchdog.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
liminix
|
||||
, lib
|
||||
}:
|
||||
{ watched, headStart } :
|
||||
let
|
||||
inherit (liminix.services) longrun;
|
||||
in longrun {
|
||||
name = "watchdog";
|
||||
run =
|
||||
"HEADSTART=${toString headStart} ${./gaspode.sh} ${lib.concatStringsSep " " (builtins.map (s: s.name) watched)}";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue