From 84120895a9d692b5f81cfb592995ce0b89a2104b Mon Sep 17 00:00:00 2001 From: tvon Date: Thu, 1 Oct 2009 00:49:34 -0400 Subject: Use HOMEBREW_PREFIX/var by default for the postgres db Copy the mysql way of doing things in so far as using a plist file avoiding any need for root or other users and advising creating the database under /usr/local/var --- Library/Formula/postgresql.rb | 71 +++++++++++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 27 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 19c0e7fd9..5963af52d 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -1,12 +1,11 @@ require 'brewkit' class Postgresql + + + + KeepAlive + + Label + org.postgresql.postgres + ProgramArguments + + #{HOMEBREW_PREFIX}/bin/postgres + -D + #{HOMEBREW_PREFIX}/var/postgres + -r + #{HOMEBREW_PREFIX}/var/postgres/server.log + + RunAtLoad + + UserName + #{`whoami`} + WorkingDirectory + #{HOMEBREW_PREFIX} + + + EOPLIST + end end -- cgit v1.2.3