added startup_validation for palatine-hill
This commit is contained in:
parent
22da417b5b
commit
fab77a48f0
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
21
systems/palatine-hill/services.nix
Normal file
21
systems/palatine-hill/services.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user