tracktrain: add a delay so postgres has time to start

This commit is contained in:
stuebinm 2024-12-09 19:05:21 +01:00
parent 37618af4da
commit 656987563c

View file

@ -65,10 +65,13 @@ in
script = '' script = ''
cd /tmp cd /tmp
ln -sf ${pkgs.writeText "tracktrain-config.yaml" tracktrain-config} config.yaml ln -sf ${pkgs.writeText "tracktrain-config.yaml" tracktrain-config} config.yaml
sleep 3
${pkgs.tracktrain}/bin/tracktrain +RTS -T ${pkgs.tracktrain}/bin/tracktrain +RTS -T
''; '';
}; };
systemd.services.postgresql.wantedBy = [ "tracktrain.service" ];
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_15; package = pkgs.postgresql_15;