Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/tmp/postgres_master ? #3

Open
meswapnilwagh opened this issue Nov 1, 2014 · 2 comments
Open

/tmp/postgres_master ? #3

meswapnilwagh opened this issue Nov 1, 2014 · 2 comments

Comments

@meswapnilwagh
Copy link
Contributor

Hello ,

I followed every step you wrote, but I have one confusion you use /tmp/postgres_master file in if condition in online-recovery.sh but you have not created it any script you wrote, i have question is system create it automatically or what but as per me system don't create any such file if the file is not present there script will not work. Can you help in this?

abessifi added a commit that referenced this issue Nov 1, 2014
@abessifi
Copy link
Owner

abessifi commented Nov 1, 2014

Hi Swapnil,
You are right.
fixed here.

@ingvarch
Copy link

I do the same thing in the instructions, but I have not created the file /tmp/postgres_master

root@XAlpha:/etc/pgpool2# cat /etc/pgpool2/pgpool.conf | grep follow_master_command
follow_master_command = 'echo %M > /tmp/postgres_master'

root@XAlpha:/etc/pgpool2# /etc/init.d/pgpool2 restart
[ ok ] Restarting pgpool-II: pgpool.

root@XAlpha:/etc/pgpool2# netstat -lnpt | grep 5431
tcp        0      0 0.0.0.0:5431            0.0.0.0:*               LISTEN      2355/pgpool

root@XAlpha:/etc/pgpool2# ls -la /tmp/
total 8
drwxrwxrwt  2 root root 4096 Dec 23 13:42 .
drwxr-xr-x 23 root root 4096 Dec 19 16:19 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants