From e4c034ff4c5ec542fad6643f892892355f8b90aa Mon Sep 17 00:00:00 2001 From: Mojo Talantikite Date: Fri, 31 May 2013 17:01:35 -0400 Subject: RethinkDB: add launchd plist Closes #20186. Signed-off-by: Adam Vandenberg --- Library/Formula/rethinkdb.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/rethinkdb.rb b/Library/Formula/rethinkdb.rb index 0636c1f40..f01bf3a1b 100644 --- a/Library/Formula/rethinkdb.rb +++ b/Library/Formula/rethinkdb.rb @@ -13,4 +13,36 @@ class Rethinkdb < Formula system "make" system "make install-osx" end + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + #{opt_prefix}/bin/rethinkdb + -d + #{var}/rethinkdb + --bind + all + --http-port + 8080 + + WorkingDirectory + #{HOMEBREW_PREFIX} + StandardOutPath + #{var}/log/rethinkdb/rethinkdb.log + StandardErrorPath + #{var}/log/rethinkdb/rethinkdb.log + RunAtLoad + + KeepAlive + + + + EOS + end end -- cgit v1.2.3