Opened 15 years ago

Closed 15 years ago

#19972 closed defect (duplicate)

postgresql82-server-8.2.13_0 Launch script fails

Reported by: Jonathan.Beall@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: jyrkiwahlstedt
Port: postgresql82-server

Description

After installing postgesql82-server on OS 10.5.7 and adding it to launchd with:

sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql82-server.plist

postgresql fails to start, as the launch script uses su to run the user postgres, but postgres is set up with /dev/null as it's shell.

In order to get postgresql to launch, all the lines in

/opt/local/etc/LaunchDaemons/org.macports.postgresql82-server/postgresql82-server.wrapper

of the form

su postgres -c "..."

needed to be changed to

sudo -u postgres ...

Change History (2)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Owner: changed from macports-tickets@… to mww@…
Port: postgresql82-server added

comment:2 Changed 15 years ago by blb@…

Resolution: duplicate
Status: newclosed

Dup of #14083.

Note: See TracTickets for help on using tickets.