[MacPorts] #19972: postgresql82-server-8.2.13_0 Launch script fails
MacPorts
noreply at macports.org
Tue Jun 16 12:43:56 PDT 2009
#19972: postgresql82-server-8.2.13_0 Launch script fails
----------------------------------------+-----------------------------------
Reporter: Jonathan.Beall@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port:
----------------------------------------+-----------------------------------
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 ...
}}}
--
Ticket URL: <http://trac.macports.org/ticket/19972>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list