@cryptotaxi247 / infra-1 / commits / ea19ccdb

mirror job: make oneshot

Graham Christensen committed Mar 16, 2019 at 10:28 UTC ea19ccdbaed631fe3cfc2930584e74eb86aff9f0
1 file changed +6 -2
modules/hydra-mirror.nix
+6 -2
@@ -36,11 +36,15 @@ let
36 export AWS_SECRET_ACCESS_KEY=$(sed 's/aws_secret_access_key=\(.*\)/\1/ ; t; d' ~/.aws/credentials)
37 exec mirror-nixos-branch ${channelName} https://hydra.nixos.org/job/${mainJob}/latest-finished
38 '';
39 - serviceConfig.User = "hydra-mirror";
39 + serviceConfig = {
40 + Type = "oneshot";
41 + RemainAfterExit = false;
42 + User = "hydra-mirror";
43 + };
44 unitConfig.After = [ "networking.target" ];
45 environment.TMPDIR = "/scratch/hydra-mirror";
46 environment.GC_INITIAL_HEAP_SIZE = "4g";
43 - };
47 + };
48 };
49
50 updateJobs = orderLib.mkOrderedChain