diff --git a/contrib/start-scripts/osx/install.sh b/contrib/start-scripts/osx/install.sh new file mode 100755 index bbc5ee3..7f7496b *** a/contrib/start-scripts/osx/install.sh --- b/contrib/start-scripts/osx/install.sh *************** *** 1,10 **** ! sudo sh -c 'echo "POSTGRESQL=-YES-" >> /etc/hostconfig' ! sudo mkdir /Library/StartupItems/PostgreSQL ! sudo cp PostgreSQL /Library/StartupItems/PostgreSQL ! sudo cp StartupParameters.plist /Library/StartupItems/PostgreSQL ! if [ -e /Library/StartupItems/PostgreSQL/PostgreSQL ] ! then ! echo "Startup Item Installed Successfully . . . " ! echo "Starting PostgreSQL Server . . . " ! SystemStarter restart PostgreSQL fi --- 1,24 ---- ! #!/bin/sh ! ! if [ -e /System/Library/LaunchDaemons/com.apple.SystemStarter.plist ]; then ! sh -c 'echo "POSTGRESQL=-YES-" >> /etc/hostconfig' ! mkdir /Library/StartupItems/PostgreSQL ! cp PostgreSQL /Library/StartupItems/PostgreSQL ! cp StartupParameters.plist /Library/StartupItems/PostgreSQL ! if [ -e /Library/StartupItems/PostgreSQL/PostgreSQL ] ! then ! echo "Startup Item Installed Successfully . . . " ! echo "Starting PostgreSQL Server . . . " ! SystemStarter restart PostgreSQL ! fi ! else ! cp org.postgresql.postgresql.plist /Library/LaunchDaemons/ ! if [ -e /Library/LaunchDaemons/org.postgresql.postgresql.plist ] ! then ! echo "LaunchDaemon Installed Successfully . . . " ! if [ ! -f /usr/local/pgsql/data/postmaster.pid ]; then ! echo "Starting PostgreSQL Server . . . " ! launchctl load -w /Library/LaunchDaemons/org.postgresql.postgresql.plist ! fi ! fi fi diff --git a/contrib/start-scripts/osx/org.postgresql.postgresql.plist b/contrib/start-scripts/osx/org.postgresql.postgresql.plist new file mode 100644 index ...7221635 *** a/contrib/start-scripts/osx/org.postgresql.postgresql.plist --- b/contrib/start-scripts/osx/org.postgresql.postgresql.plist *************** *** 0 **** --- 1,34 ---- + + + + + + + + Disabled + + Label + org.postgresql.postgresql + UserName + postgres + GroupName + postgres + ProgramArguments + + /usr/local/pgsql/bin/postgres + -D + /usr/local/pgsql/data + -c + logging_collector=on + -c + log_rotation_age=7d + -c + log_directory=/usr/local/pgsql/data/pg_log + + KeepAlive + + +