added startup_validation for jeeves

This commit is contained in:
Richie Cahill 2024-07-07 12:38:55 -04:00 committed by Alice Huston
parent e03a88b25c
commit ca75203681
2 changed files with 27 additions and 7 deletions

View File

@ -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";
};
};
};
}

View File

@ -9,13 +9,13 @@
ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}"; ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}";
}; };
}; };
}; startup_validation = {
startup_validation = { wantedBy = [ "multi-user.target" ];
wantedBy = [ "multi-user.target" ]; description = "validates startup";
description = "validates startup"; serviceConfig = {
serviceConfig = { Type = "oneshot";
Type = "oneshot"; ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeeves";
ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeeves"; };
}; };
}; };
timers = { timers = {