[MacPorts] #18488: Postgres 8.2 port can not be re-started via launchctl

MacPorts noreply at macports.org
Fri Feb 13 21:36:34 PST 2009


#18488: Postgres 8.2 port can not be re-started via launchctl
---------------------------------+------------------------------------------
 Reporter:  decibel@…            |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:  Port Bugs                            
Component:  ports                |     Version:  1.7.0                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 decibel at platter.1[23:31]~:5%sudo launchctl stop
 org.macports.postgresql82-server
 decibel at platter.1[23:31]~:6%ps auxww | grep postgresql
 decibel  23392   0.0 -0.0    27328    424  p6  R+   11:31PM   0:00.00 grep
 postgresql
 decibel at platter.1[23:31]~:7%

 (note that it takes serveral tries to actually get the daemondo process to
 stay dead)

 decibel at platter.1[23:32]~:10%sudo launchctl start
 org.macports.postgresql82-server
 decibel at platter.1[23:34]~:11%ps auxww | grep postgresql
 root     23393   0.0 -0.0    27904    748  ??  Ss   11:31PM   0:00.02
 /opt/local/bin/daemondo --label=postgresql82-server --start-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql82-server/postgresql82-server.wrapper
 start ; --stop-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql82-server/postgresql82-server.wrapper
 stop ; --restart-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql82-server/postgresql82-server.wrapper
 restart ; --pid=none
 decibel  23451   0.0 -0.0    27368    444  p6  S+   11:34PM   0:00.00 grep
 postgresql
 decibel at platter.1[23:34]~:12%psql
 psql: could not connect to server: No such file or directory
         Is the server running locally and accepting
         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
 decibel at platter.1[23:34]~:13%

 Now the daemondo process is running, but it hasn't started postgres for
 some reason. Sending a SIGHUP doesn't help. Killing daemondo just results
 in another one being re-spawned, presumably by launchctl.

-- 
Ticket URL: <http://trac.macports.org/ticket/18488>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list