Having a bit of an issue with PostgreSQL on Mac OS X 10.8.4. I accidentally did brew rm postgresql --force while the postgres server was running. When I install
I had a similar issue. I had forgot that I integrated 'lunchy' a few days ago and was using
it as a launchctl wrapper to initiate plist ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist on start up. pg_ctl was not effective because of the following line of code :
2
3
4
5 KeepAlive
6
7 Label
8 homebrew.mxcl.postgresql
9 ProgramArguments
10
11 /usr/local/opt/postgresql/bin/postgres
12 -D
13 /usr/local/var/postgres
14 -r
15 /usr/local/var/postgres/server.log
16
17 RunAtLoad
18
19 WorkingDirectory
20 /usr/local
21 StandardErrorPath
22 /usr/local/var/postgres/server.log
23
24
Trying to kill the process directly didn't work because I needed to unload the plist.
launchctl unload homebrew.mxcl.postgresql.plist