PostgreSQL server won't stop

后端 未结 8 534
醉话见心
醉话见心 2020-12-07 09:32

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

8条回答
  •  死守一世寂寞
    2020-12-07 10:07

    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 KeepAlive:

          
         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
    

提交回复
热议问题