diff --git a/pkg/flyunlock/unlock.go b/pkg/flyunlock/unlock.go index 26703568..2e326813 100644 --- a/pkg/flyunlock/unlock.go +++ b/pkg/flyunlock/unlock.go @@ -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()