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

Postgres process keeps getting restarting #52

Open
kapso opened this issue Nov 11, 2017 · 0 comments
Open

Postgres process keeps getting restarting #52

kapso opened this issue Nov 11, 2017 · 0 comments

Comments

@kapso
Copy link

kapso commented Nov 11, 2017

I am trying to watch the Postgres process on my ec2 instance using sudo bluepill load pg.pill ...but I have noticed that bluepill keeps recycling the Postgres process. Anyone know what I could be doing wrong? I saw the same behavior in God and trying bluepill as an alternative, but I am seeing the same behavior.

When I run sudo bluepill status I see status switching between postgres(pid:): starting and postgres(pid:): down

This is the message in the logs...

[warning]: [postgresql:postgres] pid_file /tmp/postgres.pid does not exist or cannot be read
[warning]: [postgresql:postgres] pid_file /tmp/postgres.pid does not exist or cannot be read
[err]: [postgresql:postgres] Failed to signal process  with code 0: no implicit conversion from nil to integer
# pg.pill
Bluepill.application('postgresql') do |app|
  app.process('postgres') do |process|
    process.start_command = 'sudo service postgresql restart'
    process.stop_command = 'sudo service postgresql stop'
    process.pid_file = '/tmp/postgres.pid'
    process.start_grace_time = 20.seconds
    process.stop_grace_time = 20.seconds
    process.restart_grace_time = 20.seconds
  end
end
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

1 participant