tracktrain: add a delay so postgres has time to start
This commit is contained in:
parent
37618af4da
commit
656987563c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue