Switch to launchctl for Postgres

`brew services` is no longer supported:

https://github.com/Homebrew/homebrew/commit/c0b99c031fec0a2096b85a458d7b42e3627560d8

Also fixes #93 and #243.

Idempotently creates Postgres database cluster and starts (or restarts)
Postgres.
I think you're right. I just removed the ampersands.


On Mon, Jul 21, 2014 at 9:04 AM, Joe Ferris <notifications@github.com>
wrote:

> In mac:
>
> >  fancy_echo "Starting Postgres ..."
> > -  brew services restart postgresql
> > +  ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
> > +  launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist &>/dev/null
>
> Does the & here start both of these in the background? If you start and
> background both at once, is there a potential race condition here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/thoughtbot/laptop/pull/254/files#r15177574>.
>