Postgresql – pgbouncer – failed to restart

pgbouncerpostgresql

I am logged in to a server and trying to restart pgbouncer.

$ /sbin/service pgbouncer restart
Stopping pgbouncer service:                                [FAILED]
pgbouncer already running                                  [FAILED]

When I call for pgbouncer status I get:

$ /sbin/service pgbouncer status
pgbouncer dead but subsys locked

Anyone know how I can properly restart pgbouncer?

Best Answer

Look for a .pid in /var/run/ and /var/lock/subsys/ for pgbouncer and delete them. Then you should be able to restart it correctly.