added startup_validation for palatine-hill

This commit is contained in:
Richie Cahill 2024-07-07 19:09:48 -04:00 committed by Alice Huston
parent 22da417b5b
commit fab77a48f0
3 changed files with 23 additions and 0 deletions

View File

@ -6,6 +6,7 @@
description = "validates startup"; description = "validates startup";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
Environment = "WEBHOOK_URL=test";
ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeevesjr"; ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeevesjr";
}; };
}; };

View File

@ -6,6 +6,7 @@
description = "maintains /zfs/storage/plex permissions"; description = "maintains /zfs/storage/plex permissions";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
Environment = "WEBHOOK_URL=test";
ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}"; ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}";
}; };
}; };

View File

@ -0,0 +1,21 @@
{ inputs, ... }:
{
systemd = {
services.startup_validation = {
wantedBy = [ "multi-user.target" ];
description = "validates startup";
serviceConfig = {
Type = "oneshot";
Environment = "WEBHOOK_URL=test";
ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_palatine_hill";
};
};
timers.startup_validation = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "10min";
Unit = "startup_validation.service";
};
};
};
}