Hot answers tagged ruby-on-rails
The file /usr/local/var/postgres/postmaster.pid is not a PID in itself, it is a text file that contains a PID. In this case it seems to be 1167. Try cat /usr/local/var/postgres/postmaster.pid. The file is there because for some reason postgres was shut down uncleanly. If this PID 1167 exists (ps -p $(cat /usr/local/var/postgres/postmaster.pid) should work ...
Only top voted, non community-wiki answers of a minimum length are eligible