From ca75203681e936cd0de2b84319baf0171ebea1cd Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sun, 7 Jul 2024 12:38:55 -0400 Subject: [PATCH] added startup_validation for jeeves --- systems/jeeves-jr/services.nix | 20 ++++++++++++++++++++ systems/jeeves/services.nix | 14 +++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 systems/jeeves-jr/services.nix diff --git a/systems/jeeves-jr/services.nix b/systems/jeeves-jr/services.nix new file mode 100644 index 0000000..a52c05c --- /dev/null +++ b/systems/jeeves-jr/services.nix @@ -0,0 +1,20 @@ +{ inputs, ... }: +{ + systemd = { + services.startup_validation = { + wantedBy = [ "multi-user.target" ]; + description = "validates startup"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeevesjr"; + }; + }; + timers.startup_validation = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "10min"; + Unit = "startup_validation.service"; + }; + }; + }; +} diff --git a/systems/jeeves/services.nix b/systems/jeeves/services.nix index 7e15026..b4cadde 100644 --- a/systems/jeeves/services.nix +++ b/systems/jeeves/services.nix @@ -9,13 +9,13 @@ ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}"; }; }; - }; - startup_validation = { - wantedBy = [ "multi-user.target" ]; - description = "validates startup"; - serviceConfig = { - Type = "oneshot"; - ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeeves"; + startup_validation = { + wantedBy = [ "multi-user.target" ]; + description = "validates startup"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeeves"; + }; }; }; timers = {