forked from hacc/haccfiles
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 = ''
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue