Project

General

Profile

Bug #5314

cmd_standby with start parameter doesn't work

Added by Michael Vitale over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Eric Worden
Start date:
05/14/2015
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

If you try to run cmd_standby like this, you will see the problem.
$PITRTOOLS/bin/cmd_standby -C /home/postgres/pitrtools-1.3/etc/cmd_standby.ini -A start

code snippet with fix where I comment out self.copy_conf() since self is not within scope in the main body entry point.

  1. If we want to start or stop postgresql on the slave
    elif pgctl_action == 'start': ### mjv fix ### self.copy_conf()
    success = standby.copy_conf()

Also available in: Atom PDF