Your one-stop-cake-shop for everything Freshly Baked has to offer

fix(pm/menu): change postgres dependency to target #176

merged opened by a.starrysky.fyi targeting main from private/minion/push-smklqylmuplo

The service comes up before postgres is actually ready to receive connections, which means there is a race condition on startup. We previously added some retry logic to workaround this - but this should be a better solution...

Labels

None yet.

requested-reviewers

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3md43bs536422
+2 -1
Diff #3
+2 -1
packetmix/systems/teal/menu.nix
··· 17 18 systemd.services.menu = { 19 wantedBy = [ "default.target" ]; 20 - wants = [ "postgresql.service" ]; 21 script = '' 22 ${project.packages.menu.result.${system}}/bin/menu 23 '';
··· 17 18 systemd.services.menu = { 19 wantedBy = [ "default.target" ]; 20 + wants = [ "postgresql.target" ]; 21 + after = [ "postgresql.target" ]; 22 script = '' 23 ${project.packages.menu.result.${system}}/bin/menu 24 '';

History

4 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
fix(pm/menu): change postgres dependency to target
5/5 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
fix(pm/menu): change postgres dependency to target
5/5 success
expand
expand 0 comments
1 commit
expand
fix(pm/menu): change postgres dependency to target
5/5 success
expand
expand 0 comments
1 commit
expand
fix(pm/menu): change postgres dependency to target
5/5 success
expand
expand 0 comments