Skip to content

Commit

Permalink
svc-adm01: fix build trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jan 12, 2025
1 parent 2e8ff23 commit d2d6eed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions hosts/svc-adm01/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,20 @@
};
in
{
# build configs
ddix-ixp-build = {
# NOTE: workaround because RemainAfterExit does not work with timers
ddix-ixp-build-trigger = {
enable = true;
# every 4 hours
startAt = "00/4:07";
serviceConfig = {
Type = "oneshot";
ExecStart = "systemctl restart ddix-ixp-build";
};
};

# build configs
ddix-ixp-build = {
enable = true;
serviceConfig = serviceConfig // {
ExecStart = "${lib.getExe pkgs.ddix-ixp-deploy} -D -t sflow_build,bird_build,eos_build,rdns_build";
RemainAfterExit = "yes";
Expand Down

0 comments on commit d2d6eed

Please sign in to comment.