Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

Commit

Permalink
postgresql: update file args on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Deare committed Sep 8, 2016
1 parent d1e594d commit 92f9d20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ func (p *postgresql) restart() error {
p.opLock.Lock()
defer p.opLock.Unlock()

if err := p.updateFiles(); err != nil {
return errors.Wrap(err, "Error updating file locations")
}

restartArg := "restart"
waitFlag := "-w"
logArg := fmt.Sprintf("--log=%s", filepath.Join(p.dataDir, "pg_log"))
Expand Down

0 comments on commit 92f9d20

Please sign in to comment.