From 656987563cacf672c880999ac9c0a5f99c972721 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 9 Dec 2024 19:05:21 +0100 Subject: [PATCH] tracktrain: add a delay so postgres has time to start --- parsons/tracktrain.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parsons/tracktrain.nix b/parsons/tracktrain.nix index 064d644..9af2c47 100644 --- a/parsons/tracktrain.nix +++ b/parsons/tracktrain.nix @@ -65,10 +65,13 @@ in script = '' cd /tmp ln -sf ${pkgs.writeText "tracktrain-config.yaml" tracktrain-config} config.yaml + sleep 3 ${pkgs.tracktrain}/bin/tracktrain +RTS -T ''; }; + systemd.services.postgresql.wantedBy = [ "tracktrain.service" ]; + services.postgresql = { enable = true; package = pkgs.postgresql_15;