postgresql/contrib/start-scripts/osx
Tom Lane 0d9243903e Provide modern examples of how to auto-start Postgres on macOS.
The scripts in contrib/start-scripts/osx don't work at all on macOS
10.10 (Yosemite) or later, because they depend on SystemStarter which
Apple deprecated long ago and removed in 10.10.  Add a new subdirectory
contrib/start-scripts/macos with scripts that use the newer launchd
infrastructure.

Since this problem is independent of which Postgres version you're using,
back-patch to all supported branches.

Discussion: https://postgr.es/m/31338.1510763554@sss.pgh.pa.us
2017-11-17 12:47:21 -05:00
..
install.sh Update /contrib OS/X startup files, and move to a separate OS/X 2007-05-30 18:10:38 +00:00
PostgreSQL start-scripts: switch to $PGUSER before opening $PGLOG. 2017-11-06 07:11:13 -08:00
README Provide modern examples of how to auto-start Postgres on macOS. 2017-11-17 12:47:21 -05:00
StartupParameters.plist Update /contrib OS/X startup files, and move to a separate OS/X 2007-05-30 18:10:38 +00:00

The scripts in this directory are for use with Apple's SystemStarter
infrastructure, which is deprecated since macOS 10.4 and is gone entirely
as of 10.10.  You should use the scripts in ../macos instead, unless
you are using a macOS release too old to have launchd.

To install execute the following:

sudo /bin/sh ./install.sh