8.45.1 on mac - Plist problems

Поиск
Список
Период
Сортировка
Искать

8.45.1 on mac - Plist problems

От:
Robert Hartung <rwhart@mchsi.com>
Дата:
Hi all,
   Using a MacBook Pro.  Snow Leopard installed along with XCode

   I have 8.4.1 compiled from tar.gz.  It lives in
/usr/local/postgresql-8.4.1 which is owned by root.  the data
subdirectory is owned by postgres.  A link exists from
/usr/local/postgres to postgresql-8.4.1.

   PGDATA is /usr/local/postgres/data

   I can run okay with /usr/local/postgres/bin/postmaster -D ${PGDATA}

   I have tried to copy/build/modify a plist to start up automatically.
  The file below is named org.postgres.launchd.plist and it is in
/Library/LaunchDaemons.  I have fashioned it after dBEnterprises'.

file:





     Disabled
       
     Label
     org.postgres.launchd
     ProgramArguments
       
         /usr/local/postgres-8.4.1/bin/postmaster
         -D
	/usr/local/postgresql-8.4.1/bin
       
     RunAtLoad
       
     UserName
     postgres



after saving, I
   launchctl load /Library/LaunchDarmons/org.postgres.launchd.plist
then
   launchctl list | grep postgres returns
      2   org.postgres.launchd

but when I
   launchctl start org.postgres.launchd
Nothing happens.  ps ax |grep postmaster does not show
postmaster running.

Any ideas or assistance is greatfully appreciated.

Bob


Re: 8.45.1 on mac - Plist problems

От:
Scott Ribe <scott_ribe@killerbytes.com>
Дата:
>    PGDATA is /usr/local/postgres/data

But you pass /usr/local/postgresql-8.4.1/bin as the data directory?

In the future, two things to try:

- Examine pg's logfile; would probably have alerted you to the problem.

- Look in the console for error messages from launchd (and add
Debug to the plist); would probably not have helped you in
this case.

-- 
Scott Ribe
scott_ribe@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice


FAQ