Skip to content

Commit

Permalink
run pg unlock as stolon user (not root)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkurt committed Oct 15, 2021
1 parent ff06750 commit 4de7cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flyunlock/unlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func Run() error {
return err
}
svisor := supervisor.New("flypg", 5*time.Minute)
svisor.AddProcess("pg", fmt.Sprintf("postgres -D /data/postgres -p 5432 -h %s", ip.String()))
svisor.AddProcess("pg", fmt.Sprintf("gosu stolon postgres -D /data/postgres -p 5432 -h %s", ip.String()))

go svisor.Run()

Expand Down

0 comments on commit 4de7cc9

Please sign in to comment.