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,7 +9,6 @@
ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}";
};
};
};
startup_validation = {
wantedBy = [ "multi-user.target" ];
description = "validates startup";
@ -18,6 +17,7 @@
ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeeves";
};
};
};
timers = {
plex_permission = {
wantedBy = [ "timers.target" ];